SwitchListTile constructor
const
SwitchListTile({
- Key? key,
- required bool checked,
- ValueChanged<
bool> ? onChanged, - Widget? title,
- Widget? subtitle,
- bool autofocus = false,
- FocusNode? focusNode,
- bool isThreeLine = false,
- ButtonState<
Color> ? tileColor, - ButtonState<
ShapeBorder> ? shape, - ToggleSwitchThemeData? style,
- Widget? thumb,
Implementation
const SwitchListTile({
Key? key,
required this.checked,
this.onChanged,
this.title,
this.subtitle,
this.autofocus = false,
this.focusNode,
this.isThreeLine = false,
this.tileColor,
this.shape,
this.style,
this.thumb,
}) : super(key: key);