prepareNextImage method
Pre-configure the next image annotation to be inserted when the user taps the page. Example:
// first enter image creation mode
await controller.setAnnotationMode(CPDFAnnotationType.pictures);
// then prepare the image path
await controller.prepareNextImage('/path/to/image.png');
// now, when the user taps the page, the image will be inserted using the specified image
Implementation
Future<void> prepareNextImage(String imagePath) async {
return await _channel.invokeMethod('prepare_next_image', imagePath);
}