SwitchListTile constructor
SwitchListTile({
- required bool value,
- required Object title,
- Object? subtitle,
- ValueCmdCallback<
bool> ? onChanged, - ListTileControlAffinity controlAffinity = ListTileControlAffinity.trailing,
- Widget? secondary,
- bool enabled = true,
- bool selected = false,
- bool dense = false,
- EdgeInsets? contentPadding,
- 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,
});