Loaded

sealed class Loaded<out T>

Inheritors

Types

Link copied to clipboard
data class Loaded<T>(val data: T) : Loaded<T>
Link copied to clipboard

Functions

Link copied to clipboard
fun dataOrNull(): T?

Returns the data if loaded, or null otherwise

Link copied to clipboard
Link copied to clipboard
fun requireData(): T

Returns the data if loaded, or throws an IllegalStateException otherwise