updateCheckbox method
Updates a CheckboxFieldState with a given value
.
fieldName
The name of the checkbox field to update.value
The new value for the checkbox field.
Implementation
void updateCheckbox(String fieldName, bool value) {
update<CheckboxFieldState<bool>, bool>(fieldName, value);
}