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
Retour truesi la chaîne est vide; sinon retournefalse.
String.isEmpty
void main() {
String str = "Hello";
print(str.isEmpty);
}
Il produira ce qui suit output -.
False