FormCast.checkbox constructor
FormCast.checkbox({
- 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,
Cast to a checkbox
Implementation
FormCast.checkbox({
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,
}) {
type = "checkbox";
metaData = {};
metaData['mouseCursor'] = mouseCursor;
metaData['activeColor'] = activeColor;
metaData['fillColor'] = fillColor;
metaData['checkColor'] = checkColor;
metaData['hoverColor'] = hoverColor;
metaData['overlayColor'] = overlayColor;
metaData['splashRadius'] = splashRadius;
metaData['materialTapTargetSize'] = materialTapTargetSize;
metaData['visualDensity'] = visualDensity;
metaData['focusNode'] = focusNode;
metaData['autofocus'] = autofocus;
metaData['shape'] = shape;
metaData['side'] = side;
metaData['isError'] = isError;
metaData['enabled'] = enabled;
metaData['tileColor'] = tileColor;
metaData['title'] = title;
metaData['subtitle'] = subtitle;
metaData['isThreeLine'] = isThreeLine;
metaData['dense'] = dense;
metaData['secondary'] = secondary;
metaData['selected'] = selected;
metaData['controlAffinity'] = controlAffinity;
metaData['contentPadding'] = contentPadding;
metaData['tristate'] = tristate;
metaData['checkboxShape'] = checkboxShape;
metaData['selectedTileColor'] = selectedTileColor;
metaData['onFocusChange'] = onFocusChange;
metaData['enableFeedback'] = enableFeedback;
metaData['checkboxSemanticLabel'] = checkboxSemanticLabel;
}