setLoading

fun <T : UiState> MutableState<T>.setLoading(isLoading: Boolean)

Updates the loading state for any UiState implementation.

Parameters

T

The concrete UiState type.

isLoading

Whether the app is loading.