QueryState<DataType, ErrorType> class

Constructors

QueryState({DataType? data, ErrorType? error, required DateTime updatedAt, required Duration staleDuration, bool loading = false})
const

Properties

data → DataType?
final
error → ErrorType?
final
hashCode int
The hash code for this object.
no setterinherited
isStale bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
staleDuration Duration
final
updatedAt DateTime
final

Methods

copyWith({DataType? data, ErrorType? error, DateTime? updatedAt, bool? loading}) QueryState<DataType, ErrorType>
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