Answers for ".contains dart"

1

dart contains method

void main(){
   var x = "This is a string.";
   var y = "a";
   var match = x.contains(y);
 
   print(match);
}
Posted by: Guest on September-07-2020
0

contains in flutter

List<String> myList = ['US', 'SG', 'US'];
print(myList.where((item) => item.contains("US")));
Posted by: Guest on April-24-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language