onPowerStateChangeWithObj abstract method
- void callback(
- PowerStateChangeEvent event
- Function? onError,
Implementation
StreamSubscription<PowerStateChangeEvent> onPowerStateChangeWithObj(
void Function(PowerStateChangeEvent event) callback, {
Function? onError,
});