ValueWithIndex<Value> class
A data structure that wraps a value with its original index from a
larger, flat list.
This is useful in grouped lists to maintain a reference to the item's position in the complete, ungrouped dataset, enabling operations like updating or removing the item from the original source.
- Annotations
Constructors
- ValueWithIndex({required Value value, required int index})
-
Creates a ValueWithIndex instance.
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override