ConfigurationRoot class
Represents the root of an Configuration hierarchy.
- Implemented types
- Implementers
- Available extensions
Constructors
-
ConfigurationRoot.new(List<
ConfigurationProvider> providers) - Initializes a Configuration root with a list of providers.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
providers
→ Iterable<
ConfigurationProvider> -
The ConfigurationProviders for this configuration.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
asIterable(
{bool makePathsRelative = false}) → Iterable< MapEntry< String, String> > -
Available on Configuration, provided by the ConfigurationExtensions extension
Get the enumeration of key value pairs within the Configuration -
dispose(
) → void -
Performs application-defined tasks associated with freeing, releasing,
or resetting unmanaged resources.
override
-
getChildren(
) → Iterable< ConfigurationSection> -
Gets the immediate children sub-sections.
override
-
getChildrenImplementation(
String? path) → Iterable< ConfigurationSection> -
Available on ConfigurationRoot, provided by the InternalConfigurationRootExtensions extension
Gets the immediate children sub-sections of configuration root based on key. -
getConnectionString(
String name) → String? -
Available on Configuration, provided by the ConfigurationExtensions extension
Gets the connection string -
getDebugView(
) → String -
Available on ConfigurationRoot, provided by the ConfigurationRootExtensions extension
-
getReloadToken(
) → ChangeToken -
Returns a ChangeToken that can be used to observe
when this configuration is reloaded.
override
-
getRequiredSection(
String key) → ConfigurationSection -
Available on Configuration, provided by the ConfigurationExtensions extension
Gets a configuration sub-section with the specified key. -
getSection(
String key) → ConfigurationSection -
Gets a configuration sub-section with the specified key.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reload(
) → void - Force the configuration values to be reloaded from the underlying ConfigurationProviders.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String key) → String? -
Gets the value corresponding to a configuration key.
override
-
operator []=(
String key, String? value) → void -
Sets the value corresponding to a configuration key.
override
Static Methods
-
getConfiguration(
List< ConfigurationProvider> providers, String key) → String? -
setConfiguration(
List< ConfigurationProvider> providers, String key, String? value) → void