RouteEntry class sealed
Represents a single registered route entry within a Router.
Each RouteEntry ties together:
- A Route definition (path + HTTP method)
- A corresponding handler function (see subclasses)
The framework uses RouteEntry instances to manage routing tables and dispatch incoming ServerHttpRequests to their correct handler.
Subclasses
- RequestRouteEntry — For handlers that accept only
(ServerHttpRequest) - XRouteEntry — For handlers that accept both
(ServerHttpRequest, ServerHttpResponse)
Example
final route = GET('/hello');
final entry = RequestRouteEntry(route, (req) => 'Hello World!');
print(entry.route.path); // /hello
- Implementers
Properties
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