SettingsTile.switchTile constructor

SettingsTile.switchTile({
  1. required bool? initialValue,
  2. required dynamic onToggle(
    1. bool value
    )?,
  3. Color? activeSwitchColor,
  4. Widget? leading,
  5. Widget? trailing,
  6. required Widget title,
  7. Widget? description,
  8. dynamic onPressed(
    1. BuildContext context
    )?,
  9. bool enabled = true,
  10. Key? key,
})

Implementation

SettingsTile.switchTile({
  required this.initialValue,
  required this.onToggle,
  this.activeSwitchColor,
  this.leading,
  this.trailing,
  required this.title,
  this.description,
  this.onPressed,
  this.enabled = true,
  Key? key,
}) : super(key: key) {
  value = null;
  tileType = SettingsTileType.switchTile;
}