findProjectByPhaseId method

Project? findProjectByPhaseId(
  1. Hash id
)

Implementation

Project? findProjectByPhaseId(Hash id) {
  for (var i = 0; i < list.length; i++) {
    for (var j = 0; j < list[i].phaseIds.length; i++) {
      if (id.toString() == list[i].phaseIds[j].toString()) return list[i];
    }
  }
  return null;
}