JsonSwitchBuilder constructor
JsonSwitchBuilder({
- Color? activeColor,
- ImageProvider<
Object> ? activeThumbImage, - Color? activeTrackColor,
- required bool autofocus,
- AutovalidateMode? autovalidateMode,
- required DragStartBehavior dragStartBehavior,
- required bool enabled,
- Color? focusColor,
- FocusNode? focusNode,
- Color? hoverColor,
- Color? inactiveThumbColor,
- ImageProvider<
Object> ? inactiveThumbImage, - Color? inactiveTrackColor,
- String? label,
- MaterialTapTargetSize? materialTapTargetSize,
- MouseCursor? mouseCursor,
- ImageErrorListener? onActiveThumbImageError,
- ValueChanged<
bool> ? onChanged, - ImageErrorListener? onInactiveThumbImageError,
- ValueChanged<
bool?> ? onSaved, - MaterialStateProperty<
Color?> ? overlayColor, - double? splashRadius,
- MaterialStateProperty<
Color?> ? thumbColor, - MaterialStateProperty<
Color?> ? trackColor, - Validator? validator,
- bool? value,
- 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);