12345678910111213141516171819202122232425262728293031 |
- import 'package:plugin_platform_interface/plugin_platform_interface.dart';
- import 'plugin_method_channel_native.dart'
- if (dart.library.html) 'plugin_method_channel_web';
- abstract class FlutterSmartscanPluginPlatform extends PlatformInterface {
- /// Constructs a FlutterSmartscanPluginPlatform.
- FlutterSmartscanPluginPlatform() : super(token: _token);
- static final Object _token = Object();
- static FlutterSmartscanPluginPlatform _instance =
- MethodChannelFlutterSmartscanPlugin();
- /// The default instance of [FlutterSmartscanPluginPlatform] to use.
- ///
- /// Defaults to [MethodChannelFlutterSmartscanPlugin].
- static FlutterSmartscanPluginPlatform get instance => _instance;
- /// Platform-specific implementations should set this with their own
- /// platform-specific class that extends [FlutterSmartscanPluginPlatform] when
- /// they register themselves.
- static set instance(FlutterSmartscanPluginPlatform instance) {
- PlatformInterface.verifyToken(instance, _token);
- _instance = instance;
- }
- Future<String?> getPlatformVersion() {
- throw UnimplementedError('platformVersion() has not been implemented.');
- }
- }
|