ConfigModule class
A module that provides a ConfigService that can be used to access environment variables.
Constructors
- ConfigModule.new({String dotEnvPath = '.env'})
- Create a new instance of ConfigModule.
Properties
-
controllers
↔ List<
Controller> -
The
controllers
property contains the controllers of the module.getter/setter pairinherited - dotEnvPath → String
-
The path to the
.env
file.final -
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 -
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
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerAsync(
ApplicationConfig config) → Future< Module> - Register the ConfigService provider.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited