FrontierModule class
The FrontierModule class is used to register strategies in the application.
It is the main class of the library. It is used to define and use strategies.
Constructors
-
FrontierModule.new(List<
Strategy< strategies, {void onError([Exception? exception])?})StrategyOptions> > - Create a new instance of FrontierModule.
Properties
-
controllers
↔ List<
Controller> -
The
controllers
property contains the controllers of the module.getter/setter pairinherited -
exportedProviders
→ List<
Provider> -
The
options
property 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 -
middlewares
↔ List<
Middleware> -
The
middlewares
property contains the middlewares of the module.getter/setter pairinherited - onError → void Function([Exception? exception])?
-
The onError function to be called when an error occurs.
final
-
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
-
strategies
→ List<
Strategy< StrategyOptions> > -
The strategies to be used.
final
- token → String
-
The
imports
property contains the modules that are imported in the module.finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerAsync(
ApplicationConfig config) → Future< Module> -
The
register
method is used to register the module. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited