ConfigEntry<T> class
A single typed configuration entry with metadata about its origin.
Constructors
- ConfigEntry({required String key, required T value, ConfigScope scope = ConfigScope.global, ConfigSource source = ConfigSource.default_, String description = '', bool validator(T value)?})
-
const
Properties
- description → String
-
Human-readable description of the entry.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isValid → bool
-
Whether value passes the optional validator.
no setter
- key → String
-
Dotted key path, e.g.
"model"or"mcp.servers".final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → ConfigScope
-
The scope this entry belongs to.
final
- source → ConfigSource
-
How this value was originally set.
final
- validator → bool Function(T value)?
-
Optional validator that returns
truewhen value is acceptable.final - value → T
-
The resolved value.
final
Methods
-
copyWith(
{String? key, T? value, ConfigScope? scope, ConfigSource? source, String? description, bool validator(T)?}) → ConfigEntry< T> - Return a copy with replaced fields.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited