moxdns/packages/moxdns_android/lib/moxdns_android_method_channel.dart

17 lines
618 B
Dart
Raw Normal View History

2022-04-29 11:58:33 +00:00
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
2022-07-27 20:30:05 +00:00
import 'package:moxdns_android/moxdns_android_platform_interface.dart';
2022-04-29 11:58:33 +00:00
/// An implementation of [MoxdnsAndroidPlatform] that uses method channels.
class MethodChannelMoxdnsAndroid extends MoxdnsAndroidPlatform {
/// The method channel used to interact with the native platform.
@visibleForTesting
final methodChannel = const MethodChannel('moxdns_android');
@override
Future<String?> getPlatformVersion() async {
final version = await methodChannel.invokeMethod<String>('getPlatformVersion');
return version;
}
}