IndexingOperatorWrapper<K, V> class
Implements indexing behaviour in the form of retrieval by, setting by, and removal by keys
- Implemented types
- Implementers
Constructors
-
IndexingOperatorWrapper(Value1Callback<
K, V> onGet, Value2Callback<K, V, void> onSet, Value1Callback<K, void> onRemove) -
Creates a new instance of IndexingOperatorWrapper
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onGet
→ Value1Callback<
K, V> -
Called to retrieve a value by key.
final
-
onRemove
→ Value1Callback<
K, void> -
Called to remove a value by key.
final
-
onSet
→ Value2Callback<
K, V, void> -
Called to set a value by key.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
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 of
key
. -
operator []=(
K key, V value) → void -
Sets the value of
key
tovalue
. -
operator |(
K key) → void -
Removes
key
and its value