onPause method

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

Called by pause. Returns true if successfully paused.

If false, the state is not changed.

Implementation

@override
Future<bool> onPause() async {
  for (var executor in _executors) {
    executor.pause();
  }
  return true;
}