JsonCupertinoSwitchBuilder constructor

const JsonCupertinoSwitchBuilder({
  1. Color? activeColor,
  2. AutovalidateMode? autovalidateMode,
  3. DragStartBehavior? dragStartBehavior,
  4. required bool enabled,
  5. String? label,
  6. ValueChanged<bool>? onChanged,
  7. ValueChanged<bool?>? onSaved,
  8. String? restorationId,
  9. Color? thumbColor,
  10. Color? trackColor,
  11. Validator? validator,
  12. bool? value,
  13. VisualDensity? visualDensity,
})

Implementation

const JsonCupertinoSwitchBuilder({
  this.activeColor,
  this.autovalidateMode,
  this.dragStartBehavior,
  required this.enabled,
  this.label,
  this.onChanged,
  this.onSaved,
  this.restorationId,
  this.thumbColor,
  this.trackColor,
  this.validator,
  this.value,
  this.visualDensity,
}) : super(numSupportedChildren: kNumSupportedChildren);