Skip to content

Instantly share code, notes, and snippets.

@bhuvan0616
bhuvan0616 / Pagination.kt
Created July 6, 2022 12:07
compose pagination
sealed class LoadingState {
object NotLoading : LoadingState()
object Loading : LoadingState()
object Refreshing : LoadingState()
data class Error(val error: ErrorState) : LoadingState()