getJobInfo method Null safety
- String label
get job info of a specific job by its label
Implementation
@override
JobInfo getJobInfo(String label) {
if (!_map.containsKey(label)) {
throw InvalidJobLabelException("No job with this label found");
}
return _map[label]!;
}