historyIndex property
int
get
historyIndex
The current index of the history
Implementation
int get historyIndex => _historyIndex;
set
historyIndex
(int value)
Implementation
set historyIndex(int value) {
if (value < 0) {
value = 0;
}
if (_history.elementAtOrNull(value) != null) {
_historyIndex = value;
}
}