AbsentMapEntry<K, V> class final Collections

An entry for an absent key-value pair in an IndexMap.

Inheritance

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
The index where the key-value pair exists.
no setteroverride
isAbsent → bool
Returns true if the key is not present in the map.
no setteroverride
isPresent → bool
Returns true if the key is present in the map.
no setterinherited
key → K
A reference to the entry's key in the map, or the new key to be inserted.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → V?
The value associated with the key, or null if the key is absent.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putIfAbsent(V ifAbsent()) → V
Inserts the key-value pair into the map if the key is absent.
override
setOrUpdate(V value) → void
Sets the value associated with the key.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited