deleteAnnotations method

Future<void> deleteAnnotations(
  1. List<Annot> annotationList
)

Deletes the specified annotations in the current document.

List<Annot> annotList = new List<Annot>.empty(growable: true);
annotList.add(new Annot('Hello', 1));
annotList.add(new Annot('World', 2));

await controller.deleteAnnotations(annotList);

Implementation

Future<void> deleteAnnotations(List<Annot> annotationList) {
  return _channel.invokeMethod(Functions.deleteAnnotations,
      <String, dynamic>{Parameters.annotations: jsonEncode(annotationList)});
}