hasClearContent method

bool hasClearContent()

Checks if there is any content to clear (drawings, text, undo stack).

Implementation

bool hasClearContent() {
  return _history[_currentPage]?.isNotEmpty == true ||
      _undoStack[_currentPage]?.isNotEmpty == true;
}