BatteryState.fromBatteryState constructor

BatteryState.fromBatteryState(
  1. int level,
  2. BatteryState state
)

Implementation

BatteryState.fromBatteryState(int level, battery.BatteryState state)
    : batteryLevel = level,
      batteryStatus = _parseBatteryState(state),
      super();