Empty
Testing for an Empty String
isEmpty
String isEmpty(String? string)String.isEmpty(null);
-> true
String.isEmpty('');
-> true
String.isEmpty('\t\n\r ');
-> false
String.isEmpty('a');
-> falseisNotEmpty
Last updated
Was this helpful?