ConfigurationRoot class

Represents the root of an Configuration hierarchy.

Implemented types
Implementers
Available Extensions

Constructors

ConfigurationRoot(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

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
getReloadToken() ChangeToken
Returns a ChangeToken that can be used to observe when this configuration is reloaded.
override
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