setAnnotationReviewState method
Sets the review state of an annotation or annotation reply.
Example:
final annotation = (await document.pageAtIndex(0).getAnnotations()).first;
await document.setAnnotationReviewState(
annotation,
CPDFAnnotationReviewState.accepted,
);
final replies = await document.getAnnotationReplies(annotation);
if (replies.isNotEmpty) {
await document.setAnnotationReviewState(
replies.first,
CPDFAnnotationReviewState.completed,
);
}
Since v2.6.8
Implementation
Future<bool> setAnnotationReviewState(
CPDFAnnotation annotation,
CPDFAnnotationReviewState state,
) async {
return await _channel.invokeMethod('set_annotation_review_state', {
..._annotationIdentityArgs(annotation),
'review_state': state.name,
});
}