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