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