setCity method

void setCity(
  1. String? city
)

Sets the selected city.

Implementation

void setCity(String? city) {
  emit(state.copyWith(selectedCity: city));
}