JsonCupertinoSwitchBuilderModel constructor

const JsonCupertinoSwitchBuilderModel(
  1. Map<String, dynamic> args, {
  2. Color? activeColor,
  3. AutovalidateMode? autovalidateMode,
  4. DragStartBehavior? dragStartBehavior,
  5. bool enabled = true,
  6. String? label,
  7. void onChanged(
    1. bool
    )?,
  8. void onSaved(
    1. bool?
    )?,
  9. String? restorationId,
  10. Color? thumbColor,
  11. Color? trackColor,
  12. required dynamic validators,
  13. bool value = false,
  14. VisualDensity? visualDensity,
})

Implementation

const JsonCupertinoSwitchBuilderModel(
  super.args, {
  this.activeColor,
  this.autovalidateMode,
  this.dragStartBehavior,
  this.enabled = true,
  this.label,
  this.onChanged,
  this.onSaved,
  this.restorationId,
  this.thumbColor,
  this.trackColor,
  required this.validators,
  this.value = false,
  this.visualDensity,
});