instance property
FlutterUsbPlatform
get
instance
The default instance of FlutterUsbPlatform to use.
Defaults to MethodChannelFlutterUsb.
Implementation
static FlutterUsbPlatform get instance => _instance;
set
instance
(FlutterUsbPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends FlutterUsbPlatform when they register themselves.
Implementation
static set instance(FlutterUsbPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}