values property

Map<FormKey, Object?> get values

A map of all current form field values keyed by their FormKey.

This getter provides access to the current state of all registered form fields. The map is rebuilt on each access to reflect the latest values from all active form fields.

Returns a Map<FormKey, Object?> where each key corresponds to a form field and each value is the current value of that field.

Implementation

Map<FormKey, Object?> get values {
  return {
    for (var entry in _attachedInputs.entries) entry.key: entry.value.value
  };
}