getStatesByCountryId method
Implementation
Future<List<StateModel>> getStatesByCountryId(String countryId) async {
final states = await loadStates();
return states.where((state) => state.countryId == countryId).toList();
}
Future<List<StateModel>> getStatesByCountryId(String countryId) async {
final states = await loadStates();
return states.where((state) => state.countryId == countryId).toList();
}