PaginatedState<T> class abstract

Annotations
  • @freezed

Constructors

PaginatedState.data(List<T> items)
const
factory
PaginatedState.error(Object? e, [StackTrace? stk])
const
factory
PaginatedState.loading()
const
factory
PaginatedState.onGoingError(List<T> items, Object? e, [StackTrace? stk])
const
factory
PaginatedState.onGoingLoading(List<T> items)
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?>({required TResult data(_Data<T> value), required TResult loading(_Loading<T> value), required TResult error(_Error<T> value), required TResult onGoingLoading(_OnGoingLoading<T> value), required TResult onGoingError(_OnGoingError<T> value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? data(_Data<T> value)?, TResult? loading(_Loading<T> value)?, TResult? error(_Error<T> value)?, TResult? onGoingLoading(_OnGoingLoading<T> value)?, TResult? onGoingError(_OnGoingError<T> value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult data(_Data<T> value)?, TResult loading(_Loading<T> value)?, TResult error(_Error<T> value)?, TResult onGoingLoading(_OnGoingLoading<T> value)?, TResult onGoingError(_OnGoingError<T> value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult data(List<T> items)?, TResult loading()?, TResult error(Object? e, StackTrace? stk)?, TResult onGoingLoading(List<T> items)?, TResult onGoingError(List<T> items, Object? e, StackTrace? stk)?, 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?>({required TResult data(List<T> items), required TResult loading(), required TResult error(Object? e, StackTrace? stk), required TResult onGoingLoading(List<T> items), required TResult onGoingError(List<T> items, Object? e, StackTrace? stk)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? data(List<T> items)?, TResult? loading()?, TResult? error(Object? e, StackTrace? stk)?, TResult? onGoingLoading(List<T> items)?, TResult? onGoingError(List<T> items, Object? e, StackTrace? stk)?}) → TResult?
inherited

Operators

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