instance property

The default instance of BatteryLivePluginPlatform to use.

Defaults to MethodChannelBatteryLivePlugin.

Implementation

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

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

Implementation

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