PagingState<PageKeyType, ItemType> class abstract

Implementers
Annotations
  • @freezed

Constructors

PagingState(List<ItemType> items, PagingStatus status, bool hasRequestNextPage)
const
factory
PagingState.error(dynamic error)
const
factory
PagingState.loading()
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(PagingStateData<PageKeyType, ItemType> value), {required TResult loading(PagingStateLoading<PageKeyType, ItemType> value), required TResult error(PagingStateError<PageKeyType, ItemType> value)}) → TResult
inherited
maybeMap<TResult extends Object?>(TResult $default(PagingStateData<PageKeyType, ItemType> value)?, {TResult loading(PagingStateLoading<PageKeyType, ItemType> value)?, TResult error(PagingStateError<PageKeyType, ItemType> value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>(TResult $default(List<ItemType> items, PagingStatus status, bool hasRequestNextPage)?, {TResult loading()?, TResult error(dynamic error)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(List<ItemType> items, PagingStatus status, bool hasRequestNextPage), {required TResult loading(), required TResult error(dynamic error)}) → TResult
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited