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