UiState

constructor(data: T, loading: Boolean = false, error: OneTimeEvent<Throwable?> = OneTimeEvent(null))

Parameters

T

The type of the screen data. Must be a non-nullable type.