navRailDeferredLoaders top-level property
final
loadLibrary tear-offs for the seven nav-rail destinations a signed-in
user is overwhelmingly likely to visit within seconds of first paint.
Used by preloadNavRailLibraries to warm the deferred-chunk cache in
the background after first paint, so subsequent navigation clicks are
synchronous.
Visible for testing so the route-coverage test can assert this list stays in sync with the nav-rail spec.
Implementation
@visibleForTesting
final navRailDeferredLoaders = <Future<void> Function()>[
domains.loadLibrary,
tutor.loadLibrary,
review.loadLibrary,
progress.loadLibrary,
settings.loadLibrary,
notes.loadLibrary,
lesson.loadLibrary,
];