PhasedState<T> constructor
PhasedState<T> ({})
Holds the state of a Phased widget.
Implementation
PhasedState({
required List<T> values,
bool autostart = true,
T? initialValue,
this.ticker,
}) : _values = values,
_autostart = autostart {
_value = initialValue ?? values.first;
_index = _values.indexOf(_value);
}