NyFormCheckbox constructor

NyFormCheckbox({
  1. Key? key,
  2. required String name,
  3. bool? value,
  4. FieldStyleCheckbox? style,
  5. dynamic onChanged(
    1. dynamic value
    )?,
})

Creates a NyFormCheckbox widget with the specified configuration.

The name identifies the field and serves as the label text if no custom title is provided in the style. Set value for the initial checked state and customize appearance with style.

Implementation

NyFormCheckbox({
  super.key,
  required String name,
  bool? value,
  FieldStyleCheckbox? style,
  this.onChanged,
}) : field = Field.checkbox(name, value: value, style: style);