compare strings in dart code example
Example 1: dart string equals
QUESTION: Dart String comparator (java equals method)
SOLUTION:
String rubi = 'good';
String ore = 'good';
rubi == ore => true
or
rubi.compareTo(ore) == 0;
Example 2: compareTo dart strings
data.sort((a, b) {
return compareAsciiUpperCase(a.name, b.name);
});