removeAllAnnotationReplies method

Future<bool> removeAllAnnotationReplies(
  1. CPDFAnnotation annotation
)

Removes all plain replies attached to an annotation.

Mark and review state replies are preserved.

Example:

final annotations = await document.pageAtIndex(0).getAnnotations();
if (annotations.isNotEmpty) {
  await document.removeAllAnnotationReplies(annotations.first);
}

Since v2.6.8

Implementation

Future<bool> removeAllAnnotationReplies(CPDFAnnotation annotation) async {
  return await _channel.invokeMethod('remove_all_annotation_replies', {
    'page_index': annotation.page,
    'uuid': annotation.uuid,
  });
}