onPause method

  1. @override
Future<bool> onPause()
inherited

Callback when this executor is paused. Returns true if successfully paused, false otherwise.

Implementation

@override
Future<bool> onPause() async {
  timer?.cancel();
  return true;
}