batteryEvents property

  1. @override
Stream<int> get batteryEvents
override

The stream of battery level events.

Implementation

@override
Stream<int> get batteryEvents =>
    battery.onBatteryStateChanged.map((_) => _batteryLevel);