DVRoutePreloaders class
Route loaders, so a link can fetch what it points at.
Dartvel pages are deferred: each carries a loadLibrary() that fetches its
bundle on first navigation. Registering those here lets a link do it early,
which is the whole trick — the same work, moved to the moment the pointer
arrives rather than the moment the click lands.
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 Methods
-
clear(
) → void - Forget everything, for tests and for a router being replaced.
-
forPath(
String path) → Future< void> Function()? - The loader for a path, or null when nothing registered one.
-
register(
String path, Future< void> loader()) → void - Register the loader for a path. Called by the generated router.