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

Code Example 1

void main(){
   var x = "This is a string.";
   var y = "a";
   var match = x.contains(y);
 
   print(match);
}

Learn ReactJs, React Native from akashmittal.com