backHistory method

void backHistory()

Implementation

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