SwitchListTile constructor

const SwitchListTile({
  1. Key? key,
  2. required bool checked,
  3. ValueChanged<bool>? onChanged,
  4. Widget? title,
  5. Widget? subtitle,
  6. bool autofocus = false,
  7. FocusNode? focusNode,
  8. bool isThreeLine = false,
  9. ButtonState<Color>? tileColor,
  10. ButtonState<ShapeBorder>? shape,
  11. ToggleSwitchThemeData? style,
  12. 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);