removeStudy method
Remove study
from this client manager.
Note that by removing a study, it isn't stopped. Hence, the study can later be added again using the addStudy method. If a study is to be permanently stopped, use the stopStudy method.
Implementation
@override
Future<void> removeStudy(Study study) async {
info('Removing study from $runtimeType - $study');
// Disconnecting from all devices will stop sensing on each of them.
await deviceController.disconnectAllConnectedDevices();
AppTaskController().removeStudyDeployment(study.studyDeploymentId);
var m = getStudyRuntime(study)?.measurements;
if (m != null) _group.remove(m);
await super.removeStudy(study);
}