MaterialSwitchData constructor
MaterialSwitchData({
- Key? widgetKey,
- bool? value,
- void onChanged()?,
- Color? activeColor,
- DragStartBehavior? dragStartBehavior,
- FocusNode? focusNode,
- bool? autofocus,
- ValueChanged<
bool> ? onFocusChange, - Color? activeTrackColor,
- Color? inactiveThumbColor,
- Color? inactiveTrackColor,
- ImageProvider<
Object> ? activeThumbImage, - ImageProvider<
Object> ? inactiveThumbImage, - MaterialTapTargetSize? materialTapTargetSize,
- Color? focusColor,
- Color? hoverColor,
- ImageErrorListener? onActiveThumbImageError,
- ImageErrorListener? onInactiveThumbImageError,
- MouseCursor? mouseCursor,
- MaterialStateProperty<
Color?> ? overlayColor, - double? splashRadius,
- MaterialStateProperty<
Color?> ? thumbColor, - MaterialStateProperty<
Color?> ? trackColor, - MaterialStateProperty<
Icon?> ? thumbIcon, - MaterialStateProperty<
Color?> ? trackOutlineColor, - MaterialStateProperty<
double?> ? trackOutlineWidth,
Implementation
MaterialSwitchData({
super.widgetKey,
super.value,
super.onChanged,
super.activeColor,
super.dragStartBehavior,
super.focusNode,
super.autofocus,
super.onFocusChange,
this.activeTrackColor,
this.inactiveThumbColor,
this.inactiveTrackColor,
this.activeThumbImage,
this.inactiveThumbImage,
this.materialTapTargetSize,
this.focusColor,
this.hoverColor,
this.onActiveThumbImageError,
this.onInactiveThumbImageError,
this.mouseCursor,
this.overlayColor,
this.splashRadius,
this.thumbColor,
this.trackColor,
this.thumbIcon,
this.trackOutlineColor,
this.trackOutlineWidth,
});