Check out example codes for "dart string equals". It will help you in understanding the concepts better.

Code Example 1

QUESTION: Dart String comparator (java equals method)

SOLUTION:
String rubi = 'good';
String ore = 'good';

 rubi == ore => true
 		or
rubi.compareTo(ore) == 0;

Learn ReactJs, React Native from akashmittal.com