removeJobByID method

bool removeJobByID(
  1. String id
)

removes a job instance via the hashId built into each job instance object. internally calls getJobbyId

returns true if the job instance with the supplied id was found, otherwise false is returned that it wasn't found.

may not be the most efficient option

Implementation

bool removeJobByID(String id) {
  Job? job = getJobById(id);
  if (job != null) {
    removeJob(job);
    return true;
  }
  return false;
}