NyFormCheckbox constructor
NyFormCheckbox({
- Key? key,
- required String name,
- bool? value,
- FieldStyleCheckbox? style,
- dynamic onChanged(
- 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);