flutter string includes code example
Example 1: flutter string contains
var string = 'Dart strings';
string.contains('D'); // true
//You can use Regex to find patterns inside a string
string.contains(new RegExp(r'[A-Z]')); // true
Example 2: contains in flutter
List<String> myList = ['US', 'SG', 'US'];
print(myList.where((item) => item.contains("US")));