JsonSwitchBuilder constructor

JsonSwitchBuilder({
  1. Color? activeColor,
  2. ImageProvider<Object>? activeThumbImage,
  3. Color? activeTrackColor,
  4. required bool autofocus,
  5. AutovalidateMode? autovalidateMode,
  6. required DragStartBehavior dragStartBehavior,
  7. required bool enabled,
  8. Color? focusColor,
  9. FocusNode? focusNode,
  10. Color? hoverColor,
  11. Color? inactiveThumbColor,
  12. ImageProvider<Object>? inactiveThumbImage,
  13. Color? inactiveTrackColor,
  14. String? label,
  15. MaterialTapTargetSize? materialTapTargetSize,
  16. MouseCursor? mouseCursor,
  17. ImageErrorListener? onActiveThumbImageError,
  18. ValueChanged<bool>? onChanged,
  19. ImageErrorListener? onInactiveThumbImageError,
  20. ValueChanged<bool?>? onSaved,
  21. MaterialStateProperty<Color?>? overlayColor,
  22. double? splashRadius,
  23. MaterialStateProperty<Color?>? thumbColor,
  24. MaterialStateProperty<Color?>? trackColor,
  25. Validator? validator,
  26. bool? value,
  27. VisualDensity? visualDensity,
})

Implementation

JsonSwitchBuilder({
  this.activeColor,
  this.activeThumbImage,
  this.activeTrackColor,
  required this.autofocus,
  this.autovalidateMode,
  required this.dragStartBehavior,
  required this.enabled,
  this.focusColor,
  this.focusNode,
  this.hoverColor,
  this.inactiveThumbColor,
  this.inactiveThumbImage,
  this.inactiveTrackColor,
  this.label,
  this.materialTapTargetSize,
  this.mouseCursor,
  this.onActiveThumbImageError,
  this.onChanged,
  this.onInactiveThumbImageError,
  this.onSaved,
  this.overlayColor,
  this.splashRadius,
  this.thumbColor,
  this.trackColor,
  this.validator,
  this.value,
  this.visualDensity,
}) : super(numSupportedChildren: kNumSupportedChildren);