Package dev.icerock.moko.mvvm

Types

State
Link copied to clipboard
common
sealed class State<out T, out E>

Functions

asState
Link copied to clipboard
common
fun <T, E> T.asState(): State<T, E>
fun <T, E> List<T>.asState(): State<List<T>, E>
fun <T, E> T?.asState(whenNull: () -> State<T, E>): State<T, E>
fun <T, E> List<T>?.asState(whenNull: () -> State<List<T>, E>): State<List<T>, E>
nullAsEmpty
Link copied to clipboard
common
inline fun <T, E> State<T, E>?.nullAsEmpty(): State<T, E>
nullAsLoading
Link copied to clipboard
common
inline fun <T, E> State<T, E>?.nullAsLoading(): State<T, E>