SwitchListTile constructor

SwitchListTile({
  1. required bool value,
  2. required Object title,
  3. Object? subtitle,
  4. ValueCmdCallback<bool>? onChanged,
  5. ListTileControlAffinity controlAffinity = ListTileControlAffinity.trailing,
  6. Widget? secondary,
  7. bool enabled = true,
  8. bool selected = false,
  9. bool dense = false,
  10. EdgeInsets? contentPadding,
  11. Key? key,
})

Implementation

SwitchListTile({
  required this.value,
  required this.title,
  this.subtitle,
  this.onChanged,
  this.controlAffinity = ListTileControlAffinity.trailing,
  this.secondary,
  this.enabled = true,
  this.selected = false,
  this.dense = false,
  this.contentPadding,
  super.key,
});