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