NyFormCheckbox constructor
NyFormCheckbox({
- Key? key,
- required String name,
- bool? value,
- MouseCursor? mouseCursor,
- Color? activeColor,
- Color? fillColor,
- Color? checkColor,
- Color? hoverColor,
- Color? overlayColor,
- double? splashRadius,
- MaterialTapTargetSize? materialTapTargetSize,
- VisualDensity? visualDensity,
- FocusNode? focusNode,
- bool autofocus = false,
- ShapeBorder? shape,
- BorderSide? side,
- bool isError = false,
- bool? enabled,
- Color? tileColor,
- Widget? title,
- Widget? subtitle,
- bool isThreeLine = false,
- bool? dense,
- Widget? secondary,
- bool selected = false,
- ListTileControlAffinity controlAffinity = ListTileControlAffinity.platform,
- EdgeInsetsGeometry? contentPadding,
- bool tristate = false,
- ShapeBorder? checkboxShape,
- Color? selectedTileColor,
- ValueChanged<
bool?> ? onFocusChange, - bool? enableFeedback,
- String? checkboxSemanticLabel,
- dynamic onChanged(
- dynamic value
Creates a NyFormCheckbox widget
Implementation
NyFormCheckbox(
{super.key,
required String name,
bool? value,
MouseCursor? mouseCursor,
Color? activeColor,
Color? fillColor,
Color? checkColor,
Color? hoverColor,
Color? overlayColor,
double? splashRadius,
MaterialTapTargetSize? materialTapTargetSize,
VisualDensity? visualDensity,
FocusNode? focusNode,
bool autofocus = false,
ShapeBorder? shape,
BorderSide? side,
bool isError = false,
bool? enabled,
Color? tileColor,
Widget? title,
Widget? subtitle,
bool isThreeLine = false,
bool? dense,
Widget? secondary,
bool selected = false,
ListTileControlAffinity controlAffinity =
ListTileControlAffinity.platform,
EdgeInsetsGeometry? contentPadding,
bool tristate = false,
ShapeBorder? checkboxShape,
Color? selectedTileColor,
ValueChanged<bool?>? onFocusChange,
bool? enableFeedback,
String? checkboxSemanticLabel,
this.onChanged})
: field = Field(name, value: value)
..cast = FormCast.checkbox(
mouseCursor: mouseCursor,
activeColor: activeColor,
fillColor: fillColor,
checkColor: checkColor,
hoverColor: hoverColor,
overlayColor: overlayColor,
splashRadius: splashRadius,
materialTapTargetSize: materialTapTargetSize,
visualDensity: visualDensity,
focusNode: focusNode,
autofocus: autofocus,
shape: shape,
side: side,
isError: isError,
enabled: enabled,
tileColor: tileColor,
subtitle: subtitle,
isThreeLine: isThreeLine,
dense: dense,
secondary: secondary,
selected: selected,
controlAffinity: controlAffinity,
contentPadding: contentPadding,
tristate: tristate,
checkboxShape: checkboxShape,
selectedTileColor: selectedTileColor,
onFocusChange: onFocusChange,
enableFeedback: enableFeedback,
checkboxSemanticLabel: checkboxSemanticLabel);