IndexedMapEntry<K, V> class sealed Collections

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

Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
The index where the key-value pair exists.
no setter
isAbsent → bool
Returns true if the key is not present in the map.
no setter
isPresent → bool
Returns true if the key is present in the map.
no setter
key → K
A reference to the entry's key in the map, or the new key to be inserted.
final
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 setter

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.
setOrUpdate(V value) → void
Sets the value associated with the key.
toString() → String
A string representation of this object.
inherited

Operators

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