async_resource library

Classes

AsyncResource<T>
An AsyncResource represents data from the network or disk such as a native I/O File, browser service-worker cache, or browser local storage.
HttpNetworkResource<T>
A NetworkResource over HTTP.
LocalResource<T>
A local resources such as a native file or browser cache.
NetworkResource<T>
Network resources are fetched from the network and will cache a local copy. [...]
StreamedResource<T>
Wraps an AsyncResource, providing a stream of its outputs and a sink tied to AsyncResource.get(). [...]

Functions

hasExpired(DateTime date, Duration maxAge) → bool

Enums

CacheStrategy

Typedefs

Parser<T>(dynamic contents) → T
contents will either be a String or List<int>, depending on whether the underlying resource is binary or string based.