setLowBattery method

void setLowBattery(
  1. bool isLow
)

Programmatically emits a new low-battery flag.

Implementation

void setLowBattery(bool isLow) {
  if (_isDisposed) return;
  _isLowBattery = isLow;
  _lowBatteryController.add(isLow);
}