WeakMap<K, V> class

Does not hold keys from garbage collection.

Annotations

Constructors

WeakMap()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Removes all pairs from the map.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(K key) → V?
Removes the value for the given key from the map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](K key) → V?
Returns the value for the given key or null if key is not in the map or garbage collected.
operator []=(K key, V value) → void
Associates the key with the given value.