QudsRouterHandler class

Define a route with handler

Constructors

QudsRouterHandler({required String routePath, RouteMethod method = RouteMethod.get, required Function handler})
Create an instance of QudsRouterHandler

Properties

handler Function
The request handler
final
hashCode int
The hash code for this object.
no setterinherited
method RouteMethod
The http method GET, POST, PUT, PATCH, DELETE, OPTIONS
final
routePath String
The route path.
final
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