DVRoutePrefetch class

The two steps of a document prefetch, replaceable for tests and for a host that serves its pages some other way.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Static Properties

fetch ↔ Future<List<String>> Function(String path)
Fetches the document for a route and its images, and completes with the images the browser now has. Nothing, off the web.
getter/setter pair
precache ↔ Future<void> Function(BuildContext context, String url)
Puts one fetched image into Flutter's image cache.
getter/setter pair

Static Methods

providerFor(String url) → ImageProvider<Object>
The provider the page itself will ask for, for an image address the build recorded.
reset() → void