getAnnotationReviewState method
Gets the review state of an annotation or annotation reply.
Example:
final annotation = (await document.pageAtIndex(0).getAnnotations()).first;
final state = await document.getAnnotationReviewState(annotation);
debugPrint('Review state: $state');
final replies = await document.getAnnotationReplies(annotation);
if (replies.isNotEmpty) {
final replyState = await document.getAnnotationReviewState(replies.first);
debugPrint('Reply review state: $replyState');
}
Since v2.6.8
Implementation
Future<CPDFAnnotationReviewState> getAnnotationReviewState(
CPDFAnnotation annotation,
) async {
final result = await _channel.invokeMethod('get_annotation_review_state', {
..._annotationIdentityArgs(annotation),
});
return CPDFAnnotationReviewState.fromString(result as String?);
}