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