CellCupertinoSwitch constructor
const
CellCupertinoSwitch({
- Key? key,
- ValueCell<
bool> enabled = const ValueCell.value(true), - required MutableCell<
bool> value, - ValueCell<
Color?> ? activeColor, - ValueCell<
Color?> ? trackColor, - ValueCell<
Color?> ? thumbColor, - ValueCell<
bool?> ? applyTheme, - ValueCell<
Color?> ? focusColor, - ValueCell<
Color?> ? onLabelColor, - ValueCell<
Color?> ? offLabelColor, - ValueCell<
FocusNode?> ? focusNode, - ValueCell<
void Function(bool)?> ? onFocusChange, - ValueCell<
bool> autofocus = const ValueCell.value(false), - ValueCell<
DragStartBehavior> dragStartBehavior = const ValueCell.value(DragStartBehavior.start),
Implementation
const CellCupertinoSwitch({
super.key,
this.enabled = const ValueCell.value(true),
required this.value,
this.activeColor,
this.trackColor,
this.thumbColor,
this.applyTheme,
this.focusColor,
this.onLabelColor,
this.offLabelColor,
this.focusNode,
this.onFocusChange,
this.autofocus = const ValueCell.value(false),
this.dragStartBehavior = const ValueCell.value(DragStartBehavior.start),
});