video_decode_plugin/lib/video_decode_plugin_method_channel.dart
2025-04-28 09:11:51 +08:00

19 lines
520 B
Dart

import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
import 'video_decode_plugin_platform_interface.dart';
/// 方法通道实现
class MethodChannelVideoDecodePlugin extends VideoDecodePluginPlatform {
/// 方法通道
@visibleForTesting
final methodChannel = const MethodChannel('video_decode_plugin');
@override
Future<String?> getPlatformVersion() async {
final version =
await methodChannel.invokeMethod<String>('getPlatformVersion');
return version;
}
}