copyImageByPath method

  1. @override
Future<bool?> copyImageByPath(
  1. String filePath
)
override

Implementation

@override
Future<bool?> copyImageByPath(String filePath) async {
  try {
    final res =  await methodChannel.invokeMethod<bool>('copyImageByPath', {
      "filePath":filePath
    });
    return res;
  } catch (e) {
    developer.log("copyImageByPath: ${e.toString()}",name: "DesktopClipboard");
  }
  return false;
}