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
const
factory
CleanState.initial()
Base state for clean_bloc Initial state
const
factory
CleanState.loading()
Base state for clean_bloc Loading state
const
factory
CleanState.success({required T data, @Default(false) bool refresh})
Base state for clean_bloc Success 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(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