instance property

FlutterUsbPlusPlatform get instance

The default instance of FlutterUsbPlusPlatform to use.

Defaults to MethodChannelFlutterUsbPlus.

Implementation

static FlutterUsbPlusPlatform get instance => _instance;
set instance (FlutterUsbPlusPlatform instance)

Platform-specific implementations should set this with their own platform-specific class that extends FlutterUsbPlusPlatform when they register themselves.

Implementation

static set instance(FlutterUsbPlusPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
  // registerNativeCallback();
}