EntityState<T> class
State of some logical entity
- Implementers
Constructors
- EntityState({T? data, bool isLoading = false, bool hasError = false, Exception? error})
-
const
- EntityState.content(T? data)
-
Content constructor
const
- EntityState.error([Exception? error, T? data])
-
Error constructor
const
- EntityState.loading([T? data])
-
Loading constructor
const
Properties
- data → T?
-
Data of entity
final
- error → Exception?
-
Exception from state
final
- hasError → bool
-
State has error
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoading → bool
-
State is loading
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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