getJobById method

Job? getJobById(
  1. String id
)

returns a job instance within the job stack using the hashId present.

a null instance is returned if no jobs with the associated id could be found.

may not be the most efficient option

Implementation

Job? getJobById(String id) {
  for (Job r in _jobStack) {
    if (r.hashId == id) {
      return r;
    }
  }
  return null;
}