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