updateAnnotationReply method

Future<bool> updateAnnotationReply(
  1. CPDFReplyAnnotation reply, {
  2. required String content,
  3. String? title,
})

Updates a plain annotation reply.

Parameters:
reply - The reply annotation to update. content - The updated reply content. title - Optional updated reply author or title.

Example:

final replies = await document.getAnnotationReplies(annotation);
if (replies.isNotEmpty) {
  await document.updateAnnotationReply(
    replies.first,
    content: 'Updated reply content.',
  );
}

Since v2.6.8

Implementation

Future<bool> updateAnnotationReply(
  CPDFReplyAnnotation reply, {
  required String content,
  String? title,
}) async {
  return await _channel.invokeMethod('update_annotation_reply', {
    ..._annotationIdentityArgs(reply),
    'content': content,
    'title': title,
  });
}