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

Static Methods

clear(map) → dynamic

containsKey(map, Object key) bool

containsValue(map, Object value) bool

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

getValues(map)

isEmpty(map) bool

isNotEmpty(map) bool

length(map) int

mapToString(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, 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

noSuchMethod is invoked when users invoke a non-existent method on an object. The name of the method and the arguments of the invocation are passed to noSuchMethod in an Invocation. If noSuchMethod returns a value, that value becomes the result of the original invocation.

inherited
toString() String

Returns a string representation of this object.

inherited