CellSwitchListTile constructor

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

Implementation

const CellSwitchListTile({
  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 = const ValueCell.value(DragStartBehavior.start),
  this.mouseCursor,
  this.overlayColor,
  this.splashRadius,
  this.focusNode,
  this.onFocusChange,
  this.autofocus = const ValueCell.value(false),
  this.tileColor,
  this.title,
  this.subtitle,
  this.isThreeLine = const ValueCell.value(false),
  this.dense,
  this.contentPadding,
  this.secondary,
  this.selected = const ValueCell.value(false),
  this.controlAffinity =
      const ValueCell.value(ListTileControlAffinity.platform),
  this.shape,
  this.selectedTileColor,
  this.visualDensity,
  this.enableFeedback,
  this.hoverColor,
});