updateState

inline fun <T : Any> MutableStateFlow<UiState<T>>.updateState(update: T.() -> T)

Extension function to update the state of a MutableStateFlow.

Parameters

T

The type of the data.

update

A function to update the data.