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