hasContent method
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;
}