Configuration class

Constructors

Configuration({Map<String, String>? environmentVariables})
Creates an empty configuration.

Properties

environment → Environment
The environment this application runs in.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addConfigDirective(String configArgument) → void
Add a single config value by using the command line syntax. This is usually used for command line argument parsing.
addConfigFile(File configFile) → void
Read and add config file into the config map.
addConfigMap(Map map) → void
Merges map into this configuration.
addConfiguration(Configuration configuration) → void
Merges values from configuration into this configuration.
addValue(ConfigPath path, dynamic value) → void
Adds a single value value to the configuration map.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read<T>(ConfigPath path) → T
readEnum<T>(ConfigPath path, List<T> values) → T
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

createSubtree(ConfigPath path, dynamic value) → Map<String, dynamic>
merge(Map<String, dynamic> target, Map source) → void
Merges source into target.

Constants

environmentPrefix → const String
The reserved first segment of a reference that reads the process environment instead of the configuration, as in $env.DB_PASSWORD.