EnvironmentConfigurationSource class final
A ConfigurationSource that produces an EnvironmentConfigurationProvider.
Register via ConfigurationBuilder.addEnvironmentVariables:
// Include all environment variables:
builder.addEnvironmentVariables();
// Include only variables prefixed with 'APP_':
builder.addEnvironmentVariables(prefix: 'APP_');
- Implemented types
Constructors
- EnvironmentConfigurationSource({String prefix = ''})
-
Creates a source with optional
prefixfiltering.const
Properties
Methods
-
build(
) → ConfigurationProvider -
Creates the ConfigurationProvider managed by this source.
override
-
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