Programmation Dart - Méthode List.isNotEmpty

Renvoie true si la collection a au moins un élément.

Syntaxe

List.isNotEmpty

Exemple

void main() { 
   var lst = new List(); 
   lst.add(12); 
   lst.add(13); 
   print(lst.isNotEmpty); 
}

Il produira ce qui suit output -.

true