backHistory method
void
backHistory()
Implementation
void backHistory() {
if (state.canBack) {
state = state.copyWith(
currentHistoryIndex: state.currentHistoryIndex + 1,
);
}
}
void backHistory() {
if (state.canBack) {
state = state.copyWith(
currentHistoryIndex: state.currentHistoryIndex + 1,
);
}
}