plugin_method_channel_native.dart 643 B

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