LiveSwitchListTile constructor

const LiveSwitchListTile({
  1. Key? key,
  2. ValueCell<bool> enabled = const ValueCell.value(true),
  3. required MutableCell<bool> value,
  4. Color? activeColor,
  5. Color? activeTrackColor,
  6. Color? inactiveThumbColor,
  7. Color? inactiveTrackColor,
  8. ImageProvider<Object>? activeThumbImage,
  9. void onActiveThumbImageError(
    1. Object,
    2. StackTrace?
    )?,
  10. ImageProvider<Object>? inactiveThumbImage,
  11. void onInactiveThumbImageError(
    1. Object,
    2. StackTrace?
    )?,
  12. WidgetStateProperty<Color?>? thumbColor,
  13. WidgetStateProperty<Color?>? trackColor,
  14. WidgetStateProperty<Color?>? trackOutlineColor,
  15. WidgetStateProperty<Icon?>? thumbIcon,
  16. MaterialTapTargetSize? materialTapTargetSize,
  17. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  18. MouseCursor? mouseCursor,
  19. WidgetStateProperty<Color?>? overlayColor,
  20. double? splashRadius,
  21. FocusNode? focusNode,
  22. void onFocusChange(
    1. bool
    )?,
  23. bool autofocus = false,
  24. Color? tileColor,
  25. Widget? title,
  26. Widget? subtitle,
  27. bool isThreeLine = false,
  28. bool? dense,
  29. EdgeInsetsGeometry? contentPadding,
  30. Widget? secondary,
  31. bool selected = false,
  32. ListTileControlAffinity controlAffinity = ListTileControlAffinity.platform,
  33. ShapeBorder? shape,
  34. Color? selectedTileColor,
  35. VisualDensity? visualDensity,
  36. bool? enableFeedback,
  37. Color? hoverColor,
})

Implementation

const LiveSwitchListTile({
  super.key,
  this.enabled = const ValueCell.value(true),
  required this.value,
  this.activeColor,
  this.activeTrackColor,
  this.inactiveThumbColor,
  this.inactiveTrackColor,
  this.activeThumbImage,
  this.onActiveThumbImageError,
  this.inactiveThumbImage,
  this.onInactiveThumbImageError,
  this.thumbColor,
  this.trackColor,
  this.trackOutlineColor,
  this.thumbIcon,
  this.materialTapTargetSize,
  this.dragStartBehavior = DragStartBehavior.start,
  this.mouseCursor,
  this.overlayColor,
  this.splashRadius,
  this.focusNode,
  this.onFocusChange,
  this.autofocus = false,
  this.tileColor,
  this.title,
  this.subtitle,
  this.isThreeLine = false,
  this.dense,
  this.contentPadding,
  this.secondary,
  this.selected = false,
  this.controlAffinity = ListTileControlAffinity.platform,
  this.shape,
  this.selectedTileColor,
  this.visualDensity,
  this.enableFeedback,
  this.hoverColor,
});