Answers for "flutter string includes"

3

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
Posted by: Guest on June-17-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