Dart Programming – Map Property isEmpty

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

In this guide, we will discuss Map Property isEmpty in Dart Programming Language. Returns true if the Map is empty.

Syntax

Map.isEmpty 

Example

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

It will produce the following output −

false 
true

Next Topic : Click Here

This Post Has 2 Comments

Leave a Reply