onDone method
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();
}