LiveCupertinoSwitch constructor

const LiveCupertinoSwitch({
  1. Key? key,
  2. ValueCell<bool> enabled = const ValueCell.value(true),
  3. required MutableCell<bool> value,
  4. Color? activeColor,
  5. Color? trackColor,
  6. Color? thumbColor,
  7. bool? applyTheme,
  8. Color? focusColor,
  9. Color? onLabelColor,
  10. Color? offLabelColor,
  11. FocusNode? focusNode,
  12. void onFocusChange(
    1. bool
    )?,
  13. bool autofocus = false,
  14. 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,
});