canRedo method

bool canRedo()

Check if redo is available. Returns true if possible.

Implementation

bool canRedo() {
  if (_currentIndex < _history.length) {
    return true;
  } else {
    return false;
  }
}