getStatesForCountry method

List<State> getStatesForCountry(
  1. int countryId
)

Implementation

List<State> getStatesForCountry(int countryId) =>
    _states?.states.where((state) => state.countryId == countryId).toList() ??
    [];