QudsRouter<T extends QudsController> class
abstract
A base class of the routers
Constructors
- QudsRouter({String prefix = '', T controllerBuilder()?, bool singletonController = false})
- Create an instance of QudsRouter
Properties
- controller → T?
-
no setter
- controllerBuilder ↔ (T Function()?)
-
The related controller of this router
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- prefix → String
-
The prefix of this router (eg: /users/)
final
-
routes
→ List<
QudsRouterHandler> -
The sub routes
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- singletonController → bool
-
final
Methods
-
mountOnRouter(
Router app) → void - Mount rhis router and its sub router on the server app
-
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