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