copyWithNullable method
A null-tolerant version of copyWith, allowing you to explicitly set fields to null.
This is useful for form reset behaviors like clearing a field's value or removing its error.
Implementation
@override
CheckboxGroupFieldState<T> copyWithNullable({
Set<T>? value,
}) {
return CheckboxGroupFieldState<T>(
checkboxes,
value: value,
error: error,
label: label,
rules: rules,
);
}