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