hasClearContent method
Checks if there are any annotations (in history or undo stack) to clear.
Implementation
bool hasClearContent() {
return _highlightHistory[_currentPage]?.isNotEmpty == true ||
_highlightUndoStack[_currentPage]?.isNotEmpty == true;
}