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