BatteryInfoAndroidWrapper constructor

BatteryInfoAndroidWrapper()

Implementation

factory BatteryInfoAndroidWrapper() {
  // Reset singleton if it was disposed
  if (_singleton?._isDisposed ?? false) {
    _singleton = null;
  }
  _singleton ??= BatteryInfoAndroidWrapper._();
  return _singleton!;
}