onDone method
Callback from app when this task is done.
If dequeue
is true
the task is removed from the queue.
Implementation
@override
void onDone(BuildContext context, {dequeue = false}) {
super.onDone(context, dequeue: dequeue);
executor.pause();
}