ComposedModule<T extends Module> class
final
The ComposedModule class is used to define a composed module.
Constructors
-
ComposedModule(Future<
T> init(CompositionContext context), {required List<Type> inject}) - The ComposedModule constructor is used to create a new instance of the ComposedModule class.
Properties
-
controllers
↔ List<
Controller> -
The controllers property contains the controllers of the module.
getter/setter pairinherited
-
exportedProviders
→ List<
Provider> -
The
optionsproperty contains the options of the module.no setterinherited -
exports
↔ List<
Type> -
The exports property contains the exports of the module.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
imports
↔ List<
Module> -
The imports property contains the modules that are imported in the module.
getter/setter pairinherited
-
init
→ Future<
T> Function(CompositionContext context) -
The init function is called when the provider is initialized.
final
-
inject
→ List<
Type> -
The inject property contains the types of other Providers that will be injected in the provider.
final
- isGlobal → bool
-
The isGlobal property is used to define if the module is global.
finalinherited
-
providers
↔ List<
Provider> -
The providers property contains the providers of the module.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- token → String
-
The imports property contains the modules that are imported in the module.
finalinherited
- type → Type
-
The type property contains the type of the module.
no setter
Methods
-
configure(
MiddlewareConsumer consumer) → void -
Configures the middleware for the module.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerAsync(
ApplicationConfig config) → Future< DynamicModule> -
The
registermethod is used to register the module.inherited -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited