Helper class which implements complex Map operations in term of basic ones (Map.keys, Map.[], Map.[]= and Map.remove.) Not all methods are necessary to implement each particular operation.

Static Methods

clear(Map map) → dynamic

containsKey(Map map, Object key) bool

containsValue(Map map, Object value) bool

forEach(Map map, void f(key, value)) → dynamic

getValues(Map map) Iterable

isEmpty(Map map) bool

isNotEmpty(Map map) bool

length(Map map) int

mapToString(Map m) String

Returns a string representing the specified map. The returned string looks like this: '{key0: value0, key1: value1, ... keyN: valueN}'. The value returned by its toString method is used to represent each key or value.

putIfAbsent(Map map, key, dynamic ifAbsent()) → dynamic

Constructors

Maps()

Properties

hashCode int

Get a hash code for this object.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() String

Returns a string representation of this object.

inherited