setAnnotationMarkState method
Sets the mark state of an annotation or annotation reply.
Example:
final annotation = (await document.pageAtIndex(0).getAnnotations()).first;
await document.setAnnotationMarkState(
annotation,
CPDFAnnotationMarkState.marked,
);
final replies = await document.getAnnotationReplies(annotation);
if (replies.isNotEmpty) {
await document.setAnnotationMarkState(
replies.first,
CPDFAnnotationMarkState.unmarked,
);
}
Since v2.6.8
Implementation
Future<bool> setAnnotationMarkState(
CPDFAnnotation annotation,
CPDFAnnotationMarkState state,
) async {
return await _channel.invokeMethod('set_annotation_mark_state', {
..._annotationIdentityArgs(annotation),
'mark_state': state.name,
});
}