ConfigValues class

Immutable configuration with case-sensitive, dot-separated path access.

Literal dots and backslashes in keys are escaped as \. and \\ in paths. Lists are values, not index-addressable path segments. Null is present for contains, but treated as missing by required getters.

Constructors

ConfigValues(Map<String, Object?> values)
Defensively copies values, recursively freezing maps and lists.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
values → Map<String, Object?>
The immutable configuration map, including literal (unescaped) keys.
final

Methods

contains(String path) → bool
Whether path exists, including explicit null values.
get(String path) → Object?
Returns a value, or null when absent. Use contains to distinguish null.
getBool(String path) → bool
Reads a boolean or a case-insensitive true / false string.
getDouble(String path) → double
Reads a finite number or parses a finite numeric string.
getInt(String path) → int
Reads an integer or parses a decimal integer string.
getSection(String path) → ConfigValues
Reads a required object section as another immutable view.
getString(String path) → String
Reads a string without coercing other value types.
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