RoutingFetcher.simple constructor

RoutingFetcher.simple(
  1. Fetcher local,
  2. Fetcher remote
)

Implementation

factory RoutingFetcher.simple(Fetcher local, Fetcher remote) =>
    RoutingFetcher([
      Route(local, accepts: (l) => l.href.startsWith("/")),
      Route(remote)
    ]);