reportMatchedRoute function

void reportMatchedRoute(
  1. Request request,
  2. String route
)

Fills the slot request carries, when it carries one.

Implementation

void reportMatchedRoute(Request request, String route) {
  final slot = request.context[matchedRouteSlotKey];
  if (slot is MatchedRouteSlot) slot.route = route;
}