FormCast.switchBox constructor

FormCast.switchBox({
  1. MouseCursor? mouseCursor,
  2. Color? activeColor,
  3. Color? fillColor,
  4. Color? checkColor,
  5. Color? hoverColor,
  6. Color? overlayColor,
  7. double? splashRadius,
  8. MaterialTapTargetSize? materialTapTargetSize,
  9. VisualDensity? visualDensity,
  10. FocusNode? focusNode,
  11. bool autofocus = false,
  12. ShapeBorder? shape,
  13. BorderSide? side,
  14. bool isError = false,
  15. bool? enabled,
  16. Color? tileColor,
  17. Widget? title,
  18. Widget? subtitle,
  19. bool isThreeLine = false,
  20. bool? dense,
  21. Widget? secondary,
  22. bool selected = false,
  23. ListTileControlAffinity controlAffinity = ListTileControlAffinity.platform,
  24. EdgeInsetsGeometry? contentPadding,
  25. bool tristate = false,
  26. ShapeBorder? checkboxShape,
  27. Color? selectedTileColor,
  28. ValueChanged<bool?>? onFocusChange,
  29. bool? enableFeedback,
  30. String? checkboxSemanticLabel,
  31. Color? activeTrackColor,
  32. Color? inactiveThumbColor,
  33. Color? inactiveTrackColor,
  34. ImageProvider<Object>? activeThumbImage,
  35. ImageErrorListener? onActiveThumbImageError,
  36. ImageProvider<Object>? inactiveThumbImage,
  37. ImageErrorListener? onInactiveThumbImageError,
  38. Color? thumbColor,
  39. Color? trackColor,
  40. Color? trackOutlineColor,
  41. Widget? thumbIcon,
  42. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
})

Cast to a switchBox

Implementation

FormCast.switchBox({
  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,
  Color? activeTrackColor,
  Color? inactiveThumbColor,
  Color? inactiveTrackColor,
  ImageProvider? activeThumbImage,
  ImageErrorListener? onActiveThumbImageError,
  ImageProvider? inactiveThumbImage,
  ImageErrorListener? onInactiveThumbImageError,
  Color? thumbColor,
  Color? trackColor,
  Color? trackOutlineColor,
  Widget? thumbIcon,
  DragStartBehavior dragStartBehavior = DragStartBehavior.start,
}) {
  type = "switchBox";
  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;
  metaData['activeTrackColor'] = activeTrackColor;
  metaData['inactiveThumbColor'] = inactiveThumbColor;
  metaData['inactiveTrackColor'] = inactiveTrackColor;
  metaData['activeThumbImage'] = activeThumbImage;
  metaData['onActiveThumbImageError'] = onActiveThumbImageError;
  metaData['inactiveThumbImage'] = inactiveThumbImage;
  metaData['onInactiveThumbImageError'] = onInactiveThumbImageError;
  metaData['thumbColor'] = thumbColor;
  metaData['trackColor'] = trackColor;
  metaData['trackOutlineColor'] = trackOutlineColor;
  metaData['thumbIcon'] = thumbIcon;
  metaData['dragStartBehavior'] = dragStartBehavior;
}