Module class abstract

Constructors

Module()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
locator ServiceLocator
ServiceLocator from Application, provided here for convenience.
no setter
name String
Name of the Module. This name will be used as namespace when prefixing it to the route.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldNamespaceRoutes bool
Sets when namespace should be prefixed to the routes. If your route is /register and your module name is auth, Then the resulting route will be auth/register when this returns true.
no setter

Methods

boot() Future<void>
This method is called after all other Modules have been registered, meaning you have access to all other services that have been registered by the framework
initialize() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register() Future<void>
Within the register method, you should only bind things into the service locator. You should never attempt to register any event listeners, routes, or any other piece of functionality within the register method.
registerRoute(String route, RouteWidgetBuilder builder) → void
Register routes from the current Module This can be used to conditionally register routes from the boot method.
routes() Map<String, RouteWidgetBuilder>
A method returning routes to be registered by the Module, RouteWidgetBuilder provides the arguments by the navigator to the Widget.
toString() String
A string representation of this object.
inherited

Operators

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