CleanState<T> class
sealed
Base state for clean_bloc
- Implementers
- Annotations
-
- @Freezed(map: FreezedMapOptions.none, genericArgumentFactories: true)
Constructors
- CleanState.error({required BaseError error})
-
Base state for clean_bloc
Error state
constfactory
- CleanState.initial()
-
Base state for clean_bloc
Initial state
constfactory
- CleanState.loading()
-
Base state for clean_bloc
Loading state
constfactory
- CleanState.success({required T data, @Default(false) bool refresh})
-
Base state for clean_bloc
Success state
constfactory
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(BaseError error)?, TResult success(T data, bool refresh)?, 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(BaseError error), required TResult success(T data, bool refresh)}) → TResult -
inherited
-
whenOrNull<
TResult extends Object?> ({TResult? initial()?, TResult? loading()?, TResult? error(BaseError error)?, TResult? success(T data, bool refresh)?}) → TResult? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited