mirror of
https://github.com/MAGICGrants/flutter_libsparkmobile.git
synced 2026-01-09 13:08:00 -05:00
flutter create --org com.cypherstack --template=plugin --platforms=android,ios,linux,macos,windows flutter_libsparkmobile
30 lines
1.1 KiB
Dart
30 lines
1.1 KiB
Dart
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
|
|
|
|
import 'flutter_libsparkmobile_method_channel.dart';
|
|
|
|
abstract class FlutterLibsparkmobilePlatform extends PlatformInterface {
|
|
/// Constructs a FlutterLibsparkmobilePlatform.
|
|
FlutterLibsparkmobilePlatform() : super(token: _token);
|
|
|
|
static final Object _token = Object();
|
|
|
|
static FlutterLibsparkmobilePlatform _instance = MethodChannelFlutterLibsparkmobile();
|
|
|
|
/// The default instance of [FlutterLibsparkmobilePlatform] to use.
|
|
///
|
|
/// Defaults to [MethodChannelFlutterLibsparkmobile].
|
|
static FlutterLibsparkmobilePlatform get instance => _instance;
|
|
|
|
/// Platform-specific implementations should set this with their own
|
|
/// platform-specific class that extends [FlutterLibsparkmobilePlatform] when
|
|
/// they register themselves.
|
|
static set instance(FlutterLibsparkmobilePlatform instance) {
|
|
PlatformInterface.verifyToken(instance, _token);
|
|
_instance = instance;
|
|
}
|
|
|
|
Future<String?> getPlatformVersion() {
|
|
throw UnimplementedError('platformVersion() has not been implemented.');
|
|
}
|
|
}
|