dev
dart 17 lines 576 Bytes
Raw
1 import 'package:flutter/foundation.dart';
2 import 'package:flutter/services.dart';
3
4 import 'cw_wownero_platform_interface.dart';
5
6 /// An implementation of [CwWowneroPlatform] that uses method channels.
7 class MethodChannelCwWownero extends CwWowneroPlatform {
8 /// The method channel used to interact with the native platform.
9 @visibleForTesting
10 final methodChannel = const MethodChannel('cw_wownero');
11
12 @override
13 Future<String?> getPlatformVersion() async {
14 final version = await methodChannel.invokeMethod<String>('getPlatformVersion');
15 return version;
16 }
17 }