browser_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. [...]
ServiceWorkerCacheEntry<T>
The cache entry for a url in a service worker.
ServiceWorkerResource<T>
A network resource fetched and cached by a service worker in a browser environment.
StorageEntry<T>
A single entry in a window.localStorage or window.sessionStorage map.
StorageType
See window.localStorage and window.sessionStorage.
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.