string contains method flutter code example
Example: 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