Loaded

data class Loaded<T>(val loadedValue: T) : ComponentState<T>

Loaded represents the state where the user data has been loaded.

Parameters

T

the type of the information to load

Constructors

Link copied to clipboard
constructor(loadedValue: T)

Properties

Link copied to clipboard

The loaded information

Functions

Link copied to clipboard
inline fun <T, R> ComponentState<T>.transform(transform: T.() -> R): ComponentState<R>

Transforms the loaded value of a ComponentState using the provided transform function.