CellCupertinoSwitch constructor

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