QueryError<T> class
final
The state emitted when a query fails.
- Inheritance
-
- Object
- QueryState<
T> - QueryError
Constructors
- QueryError({T? data, required Object error, required StackTrace stackTrace, DateTime? updatedAt, bool isStale = false, int attempt = 0})
-
Creates an error state.
const
Properties
- attempt → int
-
The current retry attempt counter since the last success.
finalinherited
- data → T?
-
The current data value, if any.
finalinherited
- error → Object?
-
The latest error, if the query failed.
finalinherited
- hasData → bool
-
Whether the state currently contains data.
no setterinherited
- hasError → bool
-
Whether the state currently contains an error.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoading → bool
-
Whether the query is actively performing work.
no setterinherited
- isStale → bool
-
Whether the current data should be considered stale.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
The stack trace associated with error, if available.
finalinherited
- updatedAt → DateTime?
-
The last successful update timestamp.
finalinherited
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