hiddenFieldValue<T> method

T hiddenFieldValue<T>(
  1. String fieldName
)

Retrieves the value of a hidden field for a specified fieldName.

This method simplifies fetching the current value of a hidden field.

  • Parameter fieldName The name of the hidden field to fetch.
  • Returns: The current value of the hidden field as a T, or null if not set.
  • Throws: ArgumentError if the field doesn't exist.

Implementation

T hiddenFieldValue<T>(String fieldName) {
  return hiddenField<T>(fieldName).value;
}