CachedText class final

Text fetched through an on-disk copy: fresh when the server answered, the cached copy when it said "unchanged" — or, offline, when it could not be reached at all or sent something unreadable.

Constructors

CachedText(String text, {bool offline = false, Object? error})
text, offline when it is the cached copy after a failure (error).
const

Properties

error → Object?
Why fetching failed, when offline.
final
hashCode → int
The hash code for this object.
no setterinherited
offline → bool
Whether this is the cached copy because fetching failed, or what was fetched could not be read.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
The text.
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