radioButtonsOf<T> method
Retrieves a list of RadioButtonFieldState for a specified fieldName
.
This method simplifies fetching radio button states for the given fieldName
.
- Parameter
fieldName
The name of the field to fetch. - Returns: A list of RadioButtonFieldState instances.
- Throws: ArgumentError if the field doesn't exist.
Implementation
List<RadioButtonFieldState<T>> radioButtonsOf<T>(String fieldName) {
return radioGroup<T>(fieldName).radioButtons;
}