commonMain.kase.Loading.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kase-core Show documentation
Show all versions of kase-core Show documentation
A kotlin multiplatform library to present common UI states
@file:JsExport
@file:Suppress("NON_EXPORTABLE_TYPE")
package kase
import kase.progress.ProgressState
import kotlinx.JsExport
data class Loading(
val message: String,
override val data: D? = null,
val progress: ProgressState = ProgressState.initial()
) : LazyState {
override val asPending: Nothing? = null
override val asLoading: Loading = this
override val asSuccess: Nothing? = null
override val asFailure: Nothing? = null
}