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