onDone method
Callback from app when this task is done.
If dequeue
is true
the task is removed from the queue.
Implementation
@mustCallSuper
void onDone(BuildContext context, {bool dequeue = false}) {
state = UserTaskState.done;
AppTaskController().done(id);
if (dequeue) AppTaskController().dequeue(id);
}