updateScreenState

abstract fun updateScreenState(newScreenState: ScreenState): UiState

Creates a copy of this UiState with the given ScreenState. Each subclass implements this using its data class copy() method.