state static method

Future<List<Zone>> state({
  1. required int stateId,
})

Implementation

static Future<List<Zone>> state({required int stateId}) async {
  List<Zone> zones = await all();
  return zones.where((zone) => zone.stateId == stateId).toList();
}