onStop method
Callback when this executor is stopped. Returns true if successfully stopped, false otherwise.
Implementation
@override
Future<bool> onStop() async {
backgroundTaskExecutor.stop();
// if an app task is stopped, remove the user task from the queue again
if (userTask != null) AppTaskController().dequeue(userTask!.id);
userTask = null;
return true;
}