hasValue method

bool hasValue(
  1. FormKey key
)

Checks if a form field has a non-null value.

Parameters:

  • key (FormKey, required): The form key to check.

Returns: bool — true if field has a value, false otherwise.

Implementation

bool hasValue(FormKey key) {
  return _attachedInputs[key]?.value != null;
}