updateCheckbox method

void updateCheckbox(
  1. String fieldName,
  2. bool value
)

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);
}