getStateByCode method

State? getStateByCode(
  1. int countryId,
  2. String stateCode
)

Implementation

State? getStateByCode(int countryId, String stateCode) =>
    _states?.states.containsWithCondition(
      (state) => state.countryId == countryId && state.stateCode == stateCode,
    );