ConfigurationSection class
Represents a section of application configuration values.
- Implemented types
- Available extensions
Constructors
- ConfigurationSection.new(ConfigurationRoot root, String path)
- Initializes a new instance.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String?
-
Gets the key this section occupies in its parent.
no setter
- path → String
-
Gets the full path to this section from the ConfigurationRoot.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ String?
-
Gets the section value.
getter/setter pair
Methods
-
asEnumerable(
{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 -
exists(
) → bool -
Available on ConfigurationSection, provided by the ConfigurationSectionExtensions extension
Determines whether the section has a ConfigurationSectionvalue
or has children -
getChildren(
) → Iterable< ConfigurationSection> -
Gets the immediate descendant configuration sub-sections.
override
-
getConnectionString(
String name) → String? -
Available on Configuration, provided by the ConfigurationExtensions extension
Gets the connection string -
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
-
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