Dart Programming - Map Property Length



Returns the size of the Map.

Syntax

Map.length 

Example

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

It will produce the following output

2
dart_programming_map.htm
Advertisements