19 lines
520 B
Dart
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;
|
|
}
|
|
}
|