instance property

The default instance of BatteryInfoPluginPlatform to use.

Defaults to MethodChannelBatteryInfoPlugin.

Implementation

static BatteryInfoPluginPlatform get instance => _instance;
set instance (BatteryInfoPluginPlatform instance)

Platform-specific implementations should set this with their own platform-specific class that extends BatteryInfoPluginPlatform when they register themselves.

Implementation

static set instance(BatteryInfoPluginPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}