instance property

The default instance of FlutterUsbEventPlatform to use.

Defaults to MethodChannelFlutterUsbEvent.

Implementation

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

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

Implementation

static set instance(FlutterUsbEventPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}