In this guide, we will discuss List.isNotEmpty Method in Dart Programming Language. Returns true if the collection has at least one element.
Syntax
List.isNotEmpty
Example
void main() { var lst = new List(); lst.add(12); lst.add(13); print(lst.isNotEmpty); }
It will produce the following output −.
true
Next Topic : Click Here
Pingback: Dart Programming - List isEmpty Method | Adglob Infosystem Pvt Ltd
Pingback: Dart Programming - Lists | Adglob Infosystem Pvt Ltd