getValue<T> method

T? getValue<T>(
  1. FormKey<T> key
)

Retrieves the current value for a specific form field.

Parameters:

  • key (FormKey<T>, required): The form key to look up.

Returns: T? — the field value if exists, null otherwise.

Implementation

T? getValue<T>(FormKey<T> key) {
  return _attachedInputs[key]?.value as T?;
}