ControllerRoute class
The data required to handle the class annotated with Controller internally by the Dartness framework.
Constructors
-
ControllerRoute({required String method, required String path, required Function handler, required List<
DartnessParam> params, int? httpCode, Map<String, String> ? headers}) -
const
Properties
- handler → Function
-
The function to be called when executing the route.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> ? -
The headers of the route if indicated.
final
- httpCode → int?
-
The http code of the route if indicated.
final
- method → String
-
The http method name of the route.
final
-
params
→ List<
DartnessParam> -
The params of the route.
final
- path → String
-
The path of the route.
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