moxdns/packages/moxdns_linux/lib/moxdns_linux_method_channel.dart

17 lines
606 B
Dart

import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
import 'package:moxdns_linux/moxdns_linux_platform_interface.dart';
/// 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;
}
}