cake_wallet/cw_mweb/lib/cw_mweb_platform_interface.dart

34 lines
1,016 B
Dart
Raw Normal View History

2024-04-20 23:20:52 +00:00
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
import 'cw_mweb_method_channel.dart';
abstract class CwMwebPlatform extends PlatformInterface {
/// Constructs a CwMwebPlatform.
CwMwebPlatform() : super(token: _token);
static final Object _token = Object();
static CwMwebPlatform _instance = MethodChannelCwMweb();
/// The default instance of [CwMwebPlatform] to use.
///
/// Defaults to [MethodChannelCwMweb].
static CwMwebPlatform get instance => _instance;
/// Platform-specific implementations should set this with their own
/// platform-specific class that extends [CwMwebPlatform] when
/// they register themselves.
static set instance(CwMwebPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}
2024-04-21 11:19:44 +00:00
Future<int?> start(String dataDir) {
2024-04-20 23:20:52 +00:00
throw UnimplementedError('start() has not been implemented.');
}
2024-07-26 19:34:11 +00:00
Future<void> stop() {
throw UnimplementedError('stop() has not been implemented.');
}
2024-04-20 23:20:52 +00:00
}