Controller class abstract

The Controller class is used to define a controller.

Implementers

Constructors

Controller(String path)
The Controller constructor is used to create a new instance of the Controller class.

Properties

exceptionFilters Set<ExceptionFilter>
The exceptionFilters property contains the exception filters of the controller.
no setter
hashCode int
The hash code for this object.
no setterinherited
hooks HooksContainer
The hooksContainer property contains the hooks container of the controller.
final
metadata List<Metadata>
The metadata property contains the metadata of the controller.
no setter
path String
The path property contains the path of the controller.
final
pipes List<Pipe>
The list of pipes to be applied.
getter/setter pair
routes Map<String, RestRouteHandlerSpec>
The routes property contains the routes of the controller.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version int?
The version property contains the version of the controller.
no setter

Methods

get(String routeId) RestRouteHandlerSpec?
The get method is used to get a route.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
on<T, B>(Route route, Future<T> handler(RequestContext<B> context), {bool shouldValidateMultipart = false}) → void
The on method is used to register a route.
onStatic<T>(Route route, T handler) → void
The onStatic method is used to register a static route. It takes a Route and a Object value.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited