RouterBuilder class
Builds routes automatically from controller annotations.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
buildFromController(
Object controller) → Future< Router> - Builds a router from a controller using annotations when possible.
-
extractControllerPath(
Object controller) → String? - Extracts the controller path from @Controller annotation.
-
registerRoute(
Router router, String method, String path, Handler handler) → void - Helper method to register routes manually when reflection is not available.