updateAnnotation method
Updates an annotation on the document.
example:
CPDFPage page = controller.document.pageAtIndex(pageIndex);
List<CPDFAnnotation> annotations = await page.getAnnotations();
bool result = await document.updateAnnotation(annotations[0]);
Implementation
Future<bool> updateAnnotation(CPDFAnnotation annotation) async {
return await _channel.invokeMethod('update_annotation', {
'page_index': annotation.page,
'uuid': annotation.uuid,
'data': annotation.toJson(),
});
}