ConfigField class
One runtime configuration key as the maintainer currently sees it, after resolving whatever layered overlay it uses.
Constructors
- ConfigField({required String key, required Object? value, required String source, required bool requiresRestart})
-
const
-
ConfigField.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
The configuration key, e.g.
server.portorlog.level.final - requiresRestart → bool
-
True when a change to this key takes effect only after a restart, rather than on
the next read.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → String
-
Which layer supplied the effective value. An opaque maintainer-defined label — the
framework does not enumerate it. A maintainer with a layered overlay reports the
winning layer (e.g.
env,db,toml,default); one without layers reports its single source.final - value → Object?
-
The effective value. Any JSON scalar the key holds (string, number, boolean, or
null). A maintainer MUST redact the value of a secret-bearing key (see the spec)
rather than return it here.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize to a JSON-encodable map, omitting absent members.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited