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