groupAnnotations method
Groups the specified annotations in the current document.
Annot primaryAnnotation = new Annot(_id1, 1);
List<Annot> subAnnotations = new List<Annot>();
subAnnotations.add(new Annot(_id2, 1));
subAnnotations.add(new Annot(_id3, 1));
await controller.groupAnnotations(primaryAnnotation, subAnnotations);
Implementation
Future<void> groupAnnotations(
Annot primaryAnnotation, List<Annot>? subAnnotations) {
return _channel.invokeMethod(Functions.groupAnnotations, <String, dynamic>{
Parameters.annotation: jsonEncode(primaryAnnotation),
Parameters.annotations: jsonEncode(subAnnotations),
});
}