Cached<T> class
One answer from a CachedCall.
- Annotations
Constructors
- Cached(T value, {required CacheSource source, DateTime? savedAt, bool sameAsLocal = false})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLocal → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sameAsLocal → bool
-
For a server answer that follows a local one: whether the server said
exactly what was saved. A screen can leave itself alone when it did.
final
- savedAt → DateTime?
-
When a local answer was saved. Null for an answer from the server.
final
- source → CacheSource
-
final
- value → T
-
final
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