mirror of
https://gitee.com/farsunset/cim.git
synced 2025-07-16 21:16:16 +08:00
18 lines
598 B
Dart
18 lines
598 B
Dart
import 'package:flutter/foundation.dart';
|
|
import 'package:flutter/services.dart';
|
|
|
|
import 'cim_flutter_sdk_platform_interface.dart';
|
|
|
|
/// An implementation of [CimFlutterSdkPlatform] that uses method channels.
|
|
class MethodChannelCimFlutterSdk extends CimFlutterSdkPlatform {
|
|
/// The method channel used to interact with the native platform.
|
|
@visibleForTesting
|
|
final methodChannel = const MethodChannel('cim_flutter_sdk');
|
|
|
|
@override
|
|
Future<String?> getPlatformVersion() async {
|
|
final version = await methodChannel.invokeMethod<String>('getPlatformVersion');
|
|
return version;
|
|
}
|
|
}
|