onDone method

  1. @override
void onDone({
  1. bool dequeue = false,
  2. Data? result,
})
override

Called by the app when the user has finished this task.

Sets result, doneTime and state, and marks the task as done in the AppTaskController. If dequeue is true the task is also removed from the queue.

Implementation

@override
void onDone({dequeue = false, Data? result}) {
  super.onDone(dequeue: dequeue, result: result);
  backgroundTaskExecutor.pause();
}