value property
The current value stored in this notifier.
When the value is replaced with something that is not equal to the old value as evaluated by the equality operator ==, this class notifies its listeners.
Implementation
@override
List<int> get value => [...super.value];
Implementation
@override
set value(List<int> value) {
assert(
wheels.isEmpty || value.length == wheels.length,
'The value must have the same length as the number of wheels.',
);
if (wheels.isNotEmpty) {
for (final (i, index) in value.indexed) {
wheels[i].jumpToItem(index);
}
}
super.value = value;
}