NikuSwitch.adaptive constructor
NikuSwitch.adaptive({
- Key? key,
- NikuState<
Color> ? thumbColorState, - NikuState<
Color> ? trackColorState, - NikuState<
Color> ? overlayColorState, - bool? value,
- ValueChanged<
bool> ? onChanged, - Color? activeColor,
- Color? activeTrackColor,
- Color? inactiveThumbColor,
- Color? inactiveTrackColor,
- ImageProvider<
Object> ? activeThumbImage, - ImageErrorListener? onActiveThumbImageError,
- ImageProvider<
Object> ? inactiveThumbImage, - ImageErrorListener? onInactiveThumbImageError,
- MaterialTapTargetSize? materialTapTargetSize,
- DragStartBehavior? dragStartBehavior,
- MouseCursor? mouseCursor,
- Color? focusColor,
- Color? hoverColor,
- double? splashRadius,
- FocusNode? focusNode,
- bool? autofocus,
- Color? thumbColor,
- Color? trackColor,
- Color? overlayColor,
- Icon? thumbIcon,
Implementation
factory NikuSwitch.adaptive({
Key? key,
NikuState<Color>? thumbColorState,
NikuState<Color>? trackColorState,
NikuState<Color>? overlayColorState,
bool? value,
ValueChanged<bool>? onChanged,
Color? activeColor,
Color? activeTrackColor,
Color? inactiveThumbColor,
Color? inactiveTrackColor,
ImageProvider? activeThumbImage,
ImageErrorListener? onActiveThumbImageError,
ImageProvider? inactiveThumbImage,
ImageErrorListener? onInactiveThumbImageError,
MaterialTapTargetSize? materialTapTargetSize,
DragStartBehavior? dragStartBehavior,
MouseCursor? mouseCursor,
Color? focusColor,
Color? hoverColor,
double? splashRadius,
FocusNode? focusNode,
bool? autofocus,
Color? thumbColor,
Color? trackColor,
Color? overlayColor,
Icon? thumbIcon,
}) =>
NikuSwitch(
value,
key: key,
thumbColorState: thumbColorState,
trackColorState: trackColorState,
overlayColorState: overlayColorState,
onChanged: onChanged,
activeColor: activeColor,
activeTrackColor: activeTrackColor,
inactiveThumbColor: inactiveThumbColor,
inactiveTrackColor: inactiveTrackColor,
activeThumbImage: activeThumbImage,
onActiveThumbImageError: onActiveThumbImageError,
inactiveThumbImage: inactiveThumbImage,
onInactiveThumbImageError: onInactiveThumbImageError,
materialTapTargetSize: materialTapTargetSize,
dragStartBehavior: dragStartBehavior,
mouseCursor: mouseCursor,
focusColor: focusColor,
hoverColor: hoverColor,
splashRadius: splashRadius,
focusNode: focusNode,
autofocus: autofocus,
thumbColor: thumbColor,
trackColor: trackColor,
overlayColor: overlayColor,
thumbIcon: thumbIcon,
adaptive: true,
);