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