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