onBatteryStateChanged property

Stream? get onBatteryStateChanged

初始化监听

Implementation

Stream<dynamic>? get onBatteryStateChanged {
  if (_onBatteryStateChanged == null) {
    _onBatteryStateChanged = _eventChannel.receiveBroadcastStream();
  }
  return _onBatteryStateChanged;
}