Propriété de chaîne isEmpty

Retour truesi la chaîne est vide; sinon retournefalse.

Syntaxe

String.isEmpty

Exemple

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

Il produira ce qui suit output -.

False