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