マップのサイズを返します。
Map.length
void main() { var details = {'Usrname':'tom','Password':'pass@123'}; print(details.length); }
次の output が生成されます-
2