hasContent method

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

Checks if there are any annotations available to undo or redo.

Implementation

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