Returns the value for the given key
or null if key
is not in the map.
Some maps allow keys to have null
as a value. For those maps, a lookup using this operator cannot distinguish between a key not being in the map and the key having a null
value. Methods like containsKey or putIfAbsent can be used if the distinction is important.
V operator [](Object key);
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-collection/MapMixin/operator_get.html