moxdns/packages/moxdns_linux/lib/moxdns_linux_method_channel.dart

17 lines
606 B
Dart
Raw Normal View History

2022-04-29 13:48:36 +00:00
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
2022-07-27 20:44:39 +00:00
import 'package:moxdns_linux/moxdns_linux_platform_interface.dart';
2022-04-29 13:48:36 +00:00
/// An implementation of [MoxdnsLinuxPlatform] that uses method channels.
class MethodChannelMoxdnsLinux extends MoxdnsLinuxPlatform {
/// The method channel used to interact with the native platform.
@visibleForTesting
final methodChannel = const MethodChannel('moxdns_linux');
@override
Future<String?> getPlatformVersion() async {
final version = await methodChannel.invokeMethod<String>('getPlatformVersion');
return version;
}
}