Dart Programming – List isEmpty Method

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

In this guide, we will discuss List isEmpty Method in Dart Programming Language. Returns true if the collection has no elements.

Syntax

List.isEmpty

Example

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

It will produce the following output −.

False  

Next Topic : Click Here

This Post Has 2 Comments

Leave a Reply