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