getCityById function

Cities? getCityById(
  1. int id
)

Implementation

Cities? getCityById(int id) {
  return slCities.firstWhere(
    (location) => location.id == id,
  );
}