checkboxValues<T> method
Retrieves the selected values of a checkbox group for a specified fieldName
.
This method simplifies fetching selected checkbox values.
- Parameter
fieldName
The name of the field to fetch. - Returns: A set containing the selected values.
- Throws: ArgumentError if the field doesn't exist.
Implementation
Set<T> checkboxValues<T>(String fieldName) {
return checkboxGroup<T>(fieldName).value;
}