Dart Programming – List.isNotEmpty Method

  • Post author:
  • Post category:Dart
  • Post comments:2 Comments
Dart Programming list.isnotempty method

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

This Post Has 2 Comments

Leave a Reply