getStudy method
Return the study with studyDeploymentId and deviceRoleName,
or null when no such study is found.
Implementation
@override
SmartphoneStudy? getStudy(String studyDeploymentId, String deviceRoleName) {
try {
return _repository.firstWhere(
(study) =>
study.studyDeploymentId == studyDeploymentId &&
study.deviceRoleName == deviceRoleName,
);
} catch (_) {
return null;
}
}