hiddenFieldValue<T> method
T
hiddenFieldValue<T>(
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
, ornull
if not set. - Throws: ArgumentError if the field doesn't exist.
Implementation
T hiddenFieldValue<T>(String fieldName) {
return hiddenField<T>(fieldName).value;
}