discontinuedPackage angular_router has been discontinued and replaced by ngrouter.

prefetcher property

FutureOr<void> Function(RouterState)? prefetcher
final

An optional function for prefetching resources before loading this route.

See RouteDefinition.defer for details.

Implementation

final FutureOr<void> Function(RouterState)? prefetcher;