asyncRadioGroupValue<T> method
Retrieves the value of an AsyncRadioGroupFieldState for a specified fieldName.
This method simplifies fetching the current value of an async radio button group.
- Parameter
fieldNameThe name of the field to fetch. - Returns: The current value of the field or
nullif not set. - Throws: ArgumentError if the field doesn't exist.
Implementation
T asyncRadioGroupValue<T>(String fieldName) {
return asyncRadioGroup<T>(fieldName).value;
}