MaterialSwitchData constructor

MaterialSwitchData({
  1. Key? widgetKey,
  2. bool? value,
  3. void onChanged(
    1. bool
    )?,
  4. Color? activeColor,
  5. DragStartBehavior? dragStartBehavior,
  6. FocusNode? focusNode,
  7. bool? autofocus,
  8. ValueChanged<bool>? onFocusChange,
  9. Color? activeTrackColor,
  10. Color? inactiveThumbColor,
  11. Color? inactiveTrackColor,
  12. ImageProvider<Object>? activeThumbImage,
  13. ImageProvider<Object>? inactiveThumbImage,
  14. MaterialTapTargetSize? materialTapTargetSize,
  15. Color? focusColor,
  16. Color? hoverColor,
  17. ImageErrorListener? onActiveThumbImageError,
  18. ImageErrorListener? onInactiveThumbImageError,
  19. MouseCursor? mouseCursor,
  20. MaterialStateProperty<Color?>? overlayColor,
  21. double? splashRadius,
  22. MaterialStateProperty<Color?>? thumbColor,
  23. MaterialStateProperty<Color?>? trackColor,
  24. MaterialStateProperty<Icon?>? thumbIcon,
  25. MaterialStateProperty<Color?>? trackOutlineColor,
  26. 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,
});