MatchedRouteSlot class final

A box a layer passes down so the router can report back what it matched.

A layer wraps the matcher, so it sees the request on the way in, before any route has been chosen — reading the matched path from its own request would always find nothing. Handing down a slot the router fills is what lets a layer label a request by route on the way out.

Constructors

MatchedRouteSlot()
Creates an empty slot.

Properties

hashCode int
The hash code for this object.
no setterinherited
route String?
The route that matched, once one has.
getter/setter pair
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