RouteHandler<T extends RouteHandler<T> > class
abstract
A Route Handler is a class that can be registered as a callback.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- newInstance → T
-
this is the method that is called when the route is called
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(
HttpRequest req, HttpResponse res) → FutureOr - this is the method that is called when the route is called
-
defineVars(
HttpRequest req, HttpResponse res) → FutureOr - Here you can define all your variables that will be available in the route handler.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
HttpRequest req, HttpResponse res) → FutureOr - This is the callback that is called when the route is called.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited