onResume method

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

Called by resume. Returns true if successfully resumed.

If false, the executor moves to ExecutorState.PausedButShouldBeResumed.

Implementation

@override
Future<bool> onResume() async {
  WidgetsBinding.instance.addObserver(this);
  return await super.onResume();
}