checkbox method
Retrieves the state of the checkbox field for a specified fieldName
.
This method retrieves the state of the checkbox field identified by the provided fieldName
.
- Parameter
fieldName
The name of the checkbox field to retrieve the state from. - Returns: The state of the checkbox field.
- Throws: ArgumentError if the field doesn't exist.
Implementation
CheckboxFieldState<bool> checkbox(String fieldName) {
return get<CheckboxFieldState<bool>, bool>(fieldName);
}