getJobInfo method Null safety

  1. @override
JobInfo getJobInfo(
  1. 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]!;
}