ControllerAction<T extends Object> class

A route action that points to a method of a controller from the container. The controller is made once per isolate, at start.

Route.get<UserController>('users', (UserController c) => c.index);

Constructors

ControllerAction(Function select)
const

Properties

controller → Type
The controller class, used by the OpenAPI docs.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
select → Function
gets the controller, gives the method that handles the request
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(IocContainer ioc, String where) → Function
the controller method, with the controller from ioc
toString() → String
A string representation of this object.
inherited

Operators

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