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
Pingback: Dart Programming - Map Property isEmpty | Adglob Infosystem Pvt Ltd
Pingback: Dart Programming - Map | Adglob Infosystem Pvt Ltd