hasContent method

bool hasContent({
  1. bool isRedo = false,
})

Check if there is content available for undo/redo

Implementation

bool hasContent({bool isRedo = false}) {
  return isRedo
      ? _undoStack[_currentPage]?.isNotEmpty == true
      : _history[_currentPage]?.isNotEmpty == true;
}