copyImage method

  1. @override
Future<void> copyImage(
  1. String imagePath
)
override

Copies the image located at imagePath to the clipboard.

For web platform, imagePath should be a URL. For other platforms, imagePath should be a local file path.

Implementation

@override
Future<void> copyImage(String imagePath) async {
  await methodChannel.invokeMethod('copyImage', {'imagePath': imagePath});
}