removeStudyDeployment method
Removes all tasks for a study deployment from the queue and cancels all notifications generated for these tasks.
Implementation
void removeStudyDeployment(String studyDeploymentId) {
final userTasks = _userTaskMap.values
.where((task) =>
task.appTaskExecutor.deployment?.studyDeploymentId ==
studyDeploymentId)
.toList();
for (var userTask in userTasks) {
dequeue(userTask.id);
}
}