Controller<T extends RouteHandler<T> > class
abstract
A Route Handler is a class that can be registered as a callback.
- Mixed-in types
-
- RouteHandler<
T>
- RouteHandler<
Constructors
- Controller.new()
-
A Route Handler is a class that can be registered as a callback.
const
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 setterinherited
- 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
inherited
-
defineVars(
HttpRequest req, HttpResponse res) → FutureOr -
Here you can define all your variables that will be available in the
route handler.
inherited
-
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.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited