CellSwitchListTile constructor
const
CellSwitchListTile({
- Key? key,
- ValueCell<
bool> enabled = const ValueCell.value(true), - required MutableCell<
bool> value, - ValueCell<
Color?> ? activeColor, - ValueCell<
Color?> ? activeTrackColor, - ValueCell<
Color?> ? inactiveThumbColor, - ValueCell<
Color?> ? inactiveTrackColor, - ValueCell<
ImageProvider< ? activeThumbImage,Object> ?> - ValueCell<
void Function(Object, StackTrace?)?> ? onActiveThumbImageError, - ValueCell<
ImageProvider< ? inactiveThumbImage,Object> ?> - ValueCell<
void Function(Object, StackTrace?)?> ? onInactiveThumbImageError, - ValueCell<
WidgetStateProperty< ? thumbColor,Color?> ?> - ValueCell<
WidgetStateProperty< ? trackColor,Color?> ?> - ValueCell<
WidgetStateProperty< ? trackOutlineColor,Color?> ?> - ValueCell<
WidgetStateProperty< ? thumbIcon,Icon?> ?> - ValueCell<
MaterialTapTargetSize?> ? materialTapTargetSize, - ValueCell<
DragStartBehavior> dragStartBehavior = const ValueCell.value(DragStartBehavior.start), - ValueCell<
MouseCursor?> ? mouseCursor, - ValueCell<
WidgetStateProperty< ? overlayColor,Color?> ?> - ValueCell<
double?> ? splashRadius, - ValueCell<
FocusNode?> ? focusNode, - ValueCell<
void Function(bool)?> ? onFocusChange, - ValueCell<
bool> autofocus = const ValueCell.value(false), - ValueCell<
Color?> ? tileColor, - ValueCell<
Widget?> ? title, - ValueCell<
Widget?> ? subtitle, - ValueCell<
bool> isThreeLine = const ValueCell.value(false), - ValueCell<
bool?> ? dense, - ValueCell<
EdgeInsetsGeometry?> ? contentPadding, - ValueCell<
Widget?> ? secondary, - ValueCell<
bool> selected = const ValueCell.value(false), - ValueCell<
ListTileControlAffinity> controlAffinity = const ValueCell.value(ListTileControlAffinity.platform), - ValueCell<
ShapeBorder?> ? shape, - ValueCell<
Color?> ? selectedTileColor, - ValueCell<
VisualDensity?> ? visualDensity, - ValueCell<
bool?> ? enableFeedback, - 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,
});