onDone method

  1. @mustCallSuper
void onDone(
  1. BuildContext context, {
  2. bool dequeue = false,
})

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);
}