AsyncResource<T> class

An AsyncResource represents data from the network or disk such as a native I/O File, browser service-worker cache, or browser local storage.

Implementers

Constructors

AsyncResource({@required String location})

Properties

data → T
Synchronously get the most recently loaded data.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
location String
The location (a path or url) of the resource.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

fetchContents() Future
Fetch the raw contents from the underlying platform. [...]
get({bool forceReload: false}) Future<T>
Gets the most readily available data or refreshes it if forceReload is true.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited