onPause method
Called by pause. Returns true if successfully paused.
If false, the state is not changed.
Implementation
@override
@mustCallSuper
Future<bool> onPause() async {
timer?.cancel();
return true;
}
Called by pause. Returns true if successfully paused.
If false, the state is not changed.
@override
@mustCallSuper
Future<bool> onPause() async {
timer?.cancel();
return true;
}