handleMethodCall method

Future handleMethodCall(
  1. MethodCall call
)

Implementation

Future<dynamic> handleMethodCall(MethodCall call) async {
  switch (call.method) {
    case 'copyImage':
      return copyImage(call.arguments['imagePath']);
    default:
      throw PlatformException(
        code: 'Unimplemented',
        details: "The image_clipboard plugin for web doesn't implement the method '${call.method}'",
      );
  }
}