BaseSwitch constructor
const
BaseSwitch({
- Key? key,
- bool? value,
- ValueChanged<
bool> ? onChanged, - Color? activeColor,
- Color? cupertinoTrackColor,
- MaterialStateProperty<
Color?> ? materialTrackColor, - DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- Color? activeTrackColor,
- Color? inactiveThumbColor,
- Color? inactiveTrackColor,
- ImageProvider<
Object> ? activeThumbImage, - ImageErrorListener? onActiveThumbImageError,
- ImageProvider<
Object> ? inactiveThumbImage, - ImageErrorListener? onInactiveThumbImageError,
- MaterialTapTargetSize? materialTapTargetSize,
- MouseCursor? mouseCursor,
- Color? focusColor,
- Color? hoverColor,
- FocusNode? focusNode,
- MaterialStateProperty<
Color?> ? overlayColor, - double? splashRadius,
- MaterialStateProperty<
Color?> ? thumbColor, - bool autofocus = false,
- 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);