CupertinoSwitchData constructor

CupertinoSwitchData({
  1. Key? widgetKey,
  2. bool? value,
  3. void onChanged(
    1. bool
    )?,
  4. Color? activeColor,
  5. DragStartBehavior? dragStartBehavior,
  6. FocusNode? focusNode,
  7. bool? autofocus,
  8. ValueChanged<bool>? onFocusChange,
  9. Color? trackColor,
  10. Color? thumbColor,
  11. bool? applyTheme,
  12. Color? focusColor,
  13. Color? offLabelColor,
  14. Color? onLabelColor,
})

Implementation

CupertinoSwitchData({
  super.widgetKey,
  super.value,
  super.onChanged,
  super.activeColor,
  super.dragStartBehavior,
  super.focusNode,
  super.autofocus,
  super.onFocusChange,
  this.trackColor,
  this.thumbColor,
  this.applyTheme,
  this.focusColor,
  this.offLabelColor,
  this.onLabelColor,
});