native_vision_platform_interface.dart 1001 B

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