ConfigResult class

Result returned by the config editor after the user confirms.

Provides typed access to field values, change detection, and serialization to a flat Map<String, dynamic>.

Constructors

ConfigResult({required List<Configurable> fields, required bool confirmed})
Creates a new ConfigResult with the final fields and confirmed status.
const

Properties

confirmed → bool
Whether the user confirmed (true) or cancelled (false).
final
fields → List<Configurable>
The list of all configurable fields with their final values.
final
hasChanges → bool
Whether any field has been modified from its default.
no setter
hashCode → int
The hash code for this object.
no setterinherited
modified → List<Configurable>
Only the fields whose values differ from their defaults.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

field(String key) → Configurable?
Returns the Configurable with the given key, or null.
get<T>(String key) → T?
Looks up a field's value by key, cast to T.
loadFromMap(Map<String, dynamic> map) → void
Loads values from a previously serialized map into the fields.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
Serializes all field values into a {key: value} map.
toString() → String
A string representation of this object.
inherited

Operators

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