SwitchTile constructor

const SwitchTile({
  1. Key? key,
  2. TileWidgetPosition checkPosition = TileWidgetPosition.trailing,
  3. Widget? title,
  4. Widget? subtitle,
  5. Widget? leading,
  6. Widget? trailing,
  7. ValueChanged<bool>? onChanged,
  8. double knownIconSize = 20,
  9. EdgeInsets contentPadding = const EdgeInsets.symmetric(vertical: 4, horizontal: 18),
  10. EdgeInsets leadingPadding = const EdgeInsets.only(right: 10, top: 4),
  11. EdgeInsets trailingPadding = const EdgeInsets.only(left: 10, top: 4),
  12. bool sliver = false,
  13. bool? value,
})

Implementation

const SwitchTile({
  super.key,
  this.checkPosition = TileWidgetPosition.trailing,
  this.title,
  this.subtitle,
  this.leading,
  this.trailing,
  this.onChanged,
  this.knownIconSize = 20,
  this.contentPadding =
      const EdgeInsets.symmetric(vertical: 4, horizontal: 18),
  this.leadingPadding = const EdgeInsets.only(right: 10, top: 4),
  this.trailingPadding = const EdgeInsets.only(left: 10, top: 4),
  this.sliver = false,
  this.value,
});