mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-06-09 15:29:31 +08:00
12 lines
351 B
Dart
12 lines
351 B
Dart
import 'package:flutter/services.dart';
|
|
|
|
class Clipboard {
|
|
final MethodChannel _clipboardChannel =
|
|
const MethodChannel("lifegpc.eh_downloader_flutter/clipboard");
|
|
|
|
Future<void> copyImageToClipboard(String mimeType, Uint8List bytes) async {
|
|
return _clipboardChannel
|
|
.invokeMethod("copyImageToClipboard", [mimeType, bytes]);
|
|
}
|
|
}
|