override fun onDeleteLocation()

in src/main/kotlin/org/jetbrains/plugins/template/weatherApp/ui/WeatherAppViewModel.kt [263:268]


    override fun onDeleteLocation(locationToDelete: Location) {
        val newState = _myLocationsUIStateFlow.value.withLocationDeleted(locationToDelete)
        updateLocationsUIStateWith(newState)

        onReloadWeatherForecast()
    }