BaseSwitch constructor

const BaseSwitch({
  1. Key? key,
  2. bool? value,
  3. ValueChanged<bool>? onChanged,
  4. Color? activeColor,
  5. Color? cupertinoTrackColor,
  6. MaterialStateProperty<Color?>? materialTrackColor,
  7. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  8. Color? activeTrackColor,
  9. Color? inactiveThumbColor,
  10. Color? inactiveTrackColor,
  11. ImageProvider<Object>? activeThumbImage,
  12. ImageErrorListener? onActiveThumbImageError,
  13. ImageProvider<Object>? inactiveThumbImage,
  14. ImageErrorListener? onInactiveThumbImageError,
  15. MaterialTapTargetSize? materialTapTargetSize,
  16. MouseCursor? mouseCursor,
  17. Color? focusColor,
  18. Color? hoverColor,
  19. FocusNode? focusNode,
  20. MaterialStateProperty<Color?>? overlayColor,
  21. double? splashRadius,
  22. MaterialStateProperty<Color?>? thumbColor,
  23. bool autofocus = false,
  24. BaseParam? baseParam,
})

Implementation

const BaseSwitch({
  Key? key,
  this.value,
  this.onChanged,
  this.activeColor,
  this.cupertinoTrackColor,
  this.materialTrackColor,
  this.dragStartBehavior = DragStartBehavior.start,
  this.activeTrackColor,
  this.inactiveThumbColor,
  this.inactiveTrackColor,
  this.activeThumbImage,
  this.onActiveThumbImageError,
  this.inactiveThumbImage,
  this.onInactiveThumbImageError,
  this.materialTapTargetSize,
  this.mouseCursor,
  this.focusColor,
  this.hoverColor,
  this.focusNode,
  this.overlayColor,
  this.splashRadius,
  this.thumbColor,
  this.autofocus = false,
  BaseParam? baseParam,
}) : super(key: key, baseParam: baseParam);