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