CellSwitch constructor
const
CellSwitch({
- 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< ? trackOutlineWidth,double?> ?> - ValueCell<
WidgetStateProperty< ? thumbIcon,Icon?> ?> - ValueCell<
MaterialTapTargetSize?> ? materialTapTargetSize, - ValueCell<
DragStartBehavior> dragStartBehavior = const ValueCell.value(DragStartBehavior.start), - ValueCell<
MouseCursor?> ? mouseCursor, - ValueCell<
Color?> ? focusColor, - ValueCell<
Color?> ? hoverColor, - ValueCell<
WidgetStateProperty< ? overlayColor,Color?> ?> - ValueCell<
double?> ? splashRadius, - ValueCell<
FocusNode?> ? focusNode, - ValueCell<
void Function(bool)?> ? onFocusChange, - ValueCell<
bool> autofocus = const ValueCell.value(false),
Implementation
const CellSwitch({
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.trackOutlineWidth,
this.thumbIcon,
this.materialTapTargetSize,
this.dragStartBehavior = const ValueCell.value(DragStartBehavior.start),
this.mouseCursor,
this.focusColor,
this.hoverColor,
this.overlayColor,
this.splashRadius,
this.focusNode,
this.onFocusChange,
this.autofocus = const ValueCell.value(false),
});