| 1 | import 'package:plugin_platform_interface/plugin_platform_interface.dart'; |
| 2 | |
| 3 | import 'cw_wownero_method_channel.dart'; |
| 4 | |
| 5 | abstract class CwWowneroPlatform extends PlatformInterface { |
| 6 | /// Constructs a CwWowneroPlatform. |
| 7 | CwWowneroPlatform() : super(token: _token); |
| 8 | |
| 9 | static final Object _token = Object(); |
| 10 | |
| 11 | static CwWowneroPlatform _instance = MethodChannelCwWownero(); |
| 12 | |
| 13 | /// The default instance of [CwWowneroPlatform] to use. |
| 14 | /// |
| 15 | /// Defaults to [MethodChannelCwWownero]. |
| 16 | static CwWowneroPlatform get instance => _instance; |
| 17 | |
| 18 | /// Platform-specific implementations should set this with their own |
| 19 | /// platform-specific class that extends [CwWowneroPlatform] when |
| 20 | /// they register themselves. |
| 21 | static set instance(CwWowneroPlatform instance) { |
| 22 | PlatformInterface.verifyToken(instance, _token); |
| 23 | _instance = instance; |
| 24 | } |
| 25 | |
| 26 | Future<String?> getPlatformVersion() { |
| 27 | throw UnimplementedError('platformVersion() has not been implemented.'); |
| 28 | } |
| 29 | } |