ConfigurationBuilder class
Represents a type used to build application configuration.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
properties
→ Map<
String, dynamic> -
Gets a key/value collection that can be used to share data between
the ConfigurationBuilder and the registered ConfigurationSources.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sources
→ List<
ConfigurationSource> -
Gets the sources used to obtain configuration values.
no setter
Methods
-
add(
ConfigurationSource source) → void - Adds a new configuration source.
-
addCommandLine(
Iterable< String> args, [LinkedHashMap<String, String> ? switchMappings]) → ConfigurationBuilder -
Available on ConfigurationBuilder, provided by the CommandLineConfigurationExtensions extension
Adds a CommandLineConfigurationProvider ConfigurationProvider that reads configuration values from the command line. -
addConfiguration(
Configuration config, [bool shouldDisposeConfiguration = false]) → ConfigurationBuilder -
Available on ConfigurationBuilder, provided by the ChainedBuilderExtensions extension
Adds an existing configuration to ConfigurationBuilder. -
addEnvironmentVariables(
[String? prefix]) → ConfigurationBuilder -
Available on ConfigurationBuilder, provided by the EnvironmentVariablesExtensions extension
-
addInMemoryCollection(
[Iterable< MapEntry< ? initialData]) → ConfigurationBuilderString, String> > -
Available on ConfigurationBuilder, provided by the MemoryConfigurationBuilderExtensions extension
Adds the memory configuration provider toconfigurationBuilder
. -
addJson(
String input) → ConfigurationBuilder -
Available on ConfigurationBuilder, provided by the JsonConfigurationExtensions extension
-
build(
) → ConfigurationRoot - Builds a Configuration with keys and values from the set of sources registered in Sources.
-
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