addAnnotation method

void addAnnotation(
  1. AnnotationAction annotationAction
)

Implementation

void addAnnotation(AnnotationAction annotationAction) {
  _underlineHistory[_currentPage]!.add(annotationAction);
  _underlineUndoStack[_currentPage]!
      .clear(); // Clear redo stack after new action
  notifyListeners();
}