onDone method

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

Callback from the app when this task is done.

If dequeue is true the task is removed from the queue. result can specify the result obtained from this task, if available.

Implementation

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