String Property isEmpty



Returns true if the string is empty; else returns false.

Syntax

String.isEmpty

Example

void main() { 
   String str = "Hello"; 
   print(str.isEmpty); 
} 

It will produce the following output −.

False 
dart_programming_string.htm
Advertisements