HydratedBlocState class abstract

Base class for all states of a TBloc that can be hydrated.

Inheritance

Constructors

HydratedBlocState({bool hydrated = false, bool isInitializing = false, bool isInitialized = false, bool isBusy = false, dynamic error})

Properties

error → dynamic
Whether the bloc has an error.
finalinherited
hasError bool
Indicates whether the bloc has an error.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hydrated bool
Whether the bloc is hydrated.
final
isBusy bool
Whether the bloc is busy.
finalinherited
isInitialized bool
Whether the bloc is initialized.
finalinherited
isInitializing bool
Whether the bloc is initializing.
finalinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
uuid String
The unique identifier of the bloc state.
finalinherited

Methods

assignValue<T>(T? value, {T? defaultValue, bool loose = true}) → T?
inherited
clone() → TModel
Creates a copy of this TModel.
inherited
copyWith({bool? hydrated}) HydratedBlocState
Creates a copy of this TModel but with the given fields replaced with the new values.
override
copyWithDefaults() → TModel
inherited
merge(TModel model) → TModel
Creates a new TModel where each properties from this object has been merged with the matching properties from the other object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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