items: ImmutableList<T>, ) { data class LoadingNextPage<T>( private val currentLoadingKey: Long? = null, private val _items: List<T> = emptyList() ) : PagingState<T>(currentLoadingKey, _items.toImmutableList()) data class FailedToLoadNewPage<T>( private val failedLoadingKey: Long? = null, private val _items: List<T> = emptyList() ) : PagingState<T>(failedLoadingKey, _items.toImmutableList()) data class Loaded<T>( private val nextKey: Long? = null, private val _items: List<T> = emptyList() ) : PagingState<T>(nextKey, _items.toImmutableList()) } Current Items