PaginatedCleanState<T, E> class sealed

Base state for paginated_clean_bloc

Implementers
Annotations
  • @Freezed(map: FreezedMapOptions.none, genericArgumentFactories: true)

Constructors

PaginatedCleanState.error({required E error})
Base state for paginated_clean_bloc PaginatedError state
const
factory
PaginatedCleanState.initial()
Base state for paginated_clean_bloc PaginatedInitial state
const
factory
PaginatedCleanState.loading()
Base state for paginated_clean_bloc PaginatedLoading state
const
factory
PaginatedCleanState.success({required List<T> data, @Default(false) bool isLoadingMore, @Default(false) bool hasReachedMax})
Base state for paginated_clean_bloc PaginatedSuccess state
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

maybeWhen<TResult extends Object?>({TResult initial()?, TResult loading()?, TResult error(E error)?, TResult success(List<T> data, bool isLoadingMore, bool hasReachedMax)?, 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 initial(), required TResult loading(), required TResult error(E error), required TResult success(List<T> data, bool isLoadingMore, bool hasReachedMax)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? initial()?, TResult? loading()?, TResult? error(E error)?, TResult? success(List<T> data, bool isLoadingMore, bool hasReachedMax)?}) → TResult?
inherited

Operators

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