Dart Programming – Map Property isNotEmpty

  • Post author:
  • Post category:Dart
  • Post comments:2 Comments
Dart Programming map property isnotempty

In this guide, we will discuss Map Property isNotEmpty in Dart Programming Language. Returns true if the Map has at least one item.

Syntax

Map.isNotEmpty 

Example

void main() { 
   var details = {'Usrname':'tom','Password':'pass@123'}; 
   print(details.isNotEmpty); 
   
   var hosts = {}; 
   print(hosts.isNotEmpty); 
}

It will produce the following output −

true 
false

Next Topic : Click Here

This Post Has 2 Comments

Leave a Reply