done method
Mark an UserTask as done. Note that a done task remains on the queue. If you want to remove a task from the queue, use the dequeue method.
Implementation
void done(String id) {
UserTask? userTask = _userTaskMap[id];
if (userTask == null) {
warning("Could not find AppTask - id is not valid: '$id'");
} else {
userTask.state = UserTaskState.done;
_controller.add(userTask);
info('Marked $userTask as done');
SmartPhoneClientManager()
.notificationController
?.cancelNotification(userTask);
}
}