IniStreamConfigurationProvider class

INI configuration provider that reads from a stream.

Parses INI-format configuration data from a stream and makes it available through the configuration system. Supports standard INI syntax including:

  • Section headers: Section:Header
  • Key-value pairs: key=value
  • Quoted values: key = " value "
  • Comments: ; # /
Inheritance
Mixed-in types

Constructors

IniStreamConfigurationProvider(StreamConfigurationSource source)
Creates a new IniStreamConfigurationProvider with the given source.

Properties

data LinkedHashMap<String, String?>
The configuration key value pairs for this provider.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getChildKeys(Iterable<String> earlierKeys, String? parentPath) Iterable<String>
Returns the list of keys that this provider has.
inherited
getReloadToken() IChangeToken
Returns a IChangeToken that can be used to listen when this provider is reloaded.
inherited
load() → void
Loads configuration values from the source represented by this ConfigurationProvider.
inherited
loadStream(Stream stream) → void
Load the configuration data from the stream.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onReload() → void
Triggers the reload change token and creates a new one.
inherited
set(String key, String? value) → void
Sets a value for a given key.
inherited
toString() String
Generates a string representing this provider name and relevant details.
inherited
tryGet(String key) → (bool, String?)
Tries to get a configuration value for the specified key.
inherited

Operators

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