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