dart / 1.24.3 / dart-collection / maps-class.html /

Maps class

Helper class which implements complex Map operations in term of basic ones (Map.keys, operator [], operator []= 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

hashCodeint
read-only, inherited

The hash code for this object.

runtimeTypeType
read-only, inherited

A representation of the runtime type of the object.

Operators

operator ==( other) → bool
inherited

The equality operator.

Methods

noSuchMethod( Invocation invocation) → dynamic
inherited

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

toString( ) → String
inherited

Returns a string representation of this object.

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-collection/Maps-class.html