NyFormCheckbox constructor

NyFormCheckbox({
  1. Key? key,
  2. required String name,
  3. bool? value,
  4. MouseCursor? mouseCursor,
  5. Color? activeColor,
  6. Color? fillColor,
  7. Color? checkColor,
  8. Color? hoverColor,
  9. Color? overlayColor,
  10. double? splashRadius,
  11. MaterialTapTargetSize? materialTapTargetSize,
  12. VisualDensity? visualDensity,
  13. FocusNode? focusNode,
  14. bool autofocus = false,
  15. ShapeBorder? shape,
  16. BorderSide? side,
  17. bool isError = false,
  18. bool? enabled,
  19. Color? tileColor,
  20. Widget? title,
  21. Widget? subtitle,
  22. bool isThreeLine = false,
  23. bool? dense,
  24. Widget? secondary,
  25. bool selected = false,
  26. ListTileControlAffinity controlAffinity = ListTileControlAffinity.platform,
  27. EdgeInsetsGeometry? contentPadding,
  28. bool tristate = false,
  29. ShapeBorder? checkboxShape,
  30. Color? selectedTileColor,
  31. ValueChanged<bool?>? onFocusChange,
  32. bool? enableFeedback,
  33. String? checkboxSemanticLabel,
  34. dynamic onChanged(
    1. 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);