hasClearContent method
Checks if there is any content to clear (drawings, text, undo stack).
Implementation
bool hasClearContent() {
return _history[_currentPage]?.isNotEmpty == true ||
_undoStack[_currentPage]?.isNotEmpty == true;
}
Checks if there is any content to clear (drawings, text, undo stack).
bool hasClearContent() {
return _history[_currentPage]?.isNotEmpty == true ||
_undoStack[_currentPage]?.isNotEmpty == true;
}