onPowerSaveChange method

  1. @override
StreamSubscription<bool> onPowerSaveChange(
  1. void callback(
    1. bool
    ), {
  2. Function? onError,
})
override

Subscribes to power save mode changes.

Implementation

@override
StreamSubscription<bool> onPowerSaveChange(
  void Function(bool) callback, {
  Function? onError,
}) =>
    _instance.onPowerSaveChange(callback, onError: onError);