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