ListTileSwitch constructor
const
ListTileSwitch({
- Key? key,
- required bool value,
- required ValueChanged<
bool> onChanged, - double switchScale = 0.7,
- Color? switchActiveColor = Colors.blue,
- Color? switchInactiveColor,
- Widget? title,
- Widget? subtitle,
- Widget? leading,
- bool enabled = true,
- bool isThreeLine = false,
- SwitchType switchType = SwitchType.custom,
- EdgeInsetsGeometry? contentPadding,
- VoidCallback? onLongPress,
- VisualDensity? visualDensity,
- bool? dense = false,
- FocusNode? focusNode,
- bool autoFocus = false,
- bool selected = false,
- Color? focusColor,
- Color? hoverColor,
- MouseCursor? mouseCursor,
- bool? toggleSelectedOnValueChange = false,
- ListTileStyle listTileStyle = ListTileStyle.list,
Implementation
const ListTileSwitch({
Key? key,
required this.value,
required this.onChanged,
this.switchScale = 0.7,
this.switchActiveColor = Colors.blue,
this.switchInactiveColor,
this.title,
this.subtitle,
this.leading,
this.enabled = true,
this.isThreeLine = false,
this.switchType = SwitchType.custom,
this.contentPadding,
this.onLongPress,
this.visualDensity,
this.dense = false,
this.focusNode,
this.autoFocus = false,
this.selected = false,
this.focusColor,
this.hoverColor,
this.mouseCursor,
this.toggleSelectedOnValueChange = false,
this.listTileStyle = ListTileStyle.list,
}) : assert(switchScale <= 1.0),
super(key: key);