instance property
UsbSerialPlatform
get
instance
The active platform implementation.
Implementation
static UsbSerialPlatform get instance =>
_instance ??= createDefaultPlatform();
set
instance
(UsbSerialPlatform platform)
Replaces the platform implementation, for tests and custom backends.
Implementation
static set instance(UsbSerialPlatform platform) => _instance = platform;