copyWith method
FieldStyleSlider
copyWith({
- double? min,
- double? max,
- int? divisions,
- Color? activeColor,
- Color? inactiveColor,
- Color? thumbColor,
- Color? overlayColor,
- MouseCursor? mouseCursor,
- SemanticFormatterCallback? semanticFormatterCallback,
- FocusNode? focusNode,
- bool? autofocus,
- SliderInteraction? allowedInteraction,
- bool? showTitle,
- Widget? title,
- double? titleSpacing,
- bool? showLabel,
- String labelFormatter(
- double value
- bool? showValue,
- String valueFormatter(
- double value
- TextStyle? valueTextStyle,
- double? valueSpacing,
- bool? enabled,
- double? headerSpacing,
override
Implementation
FieldStyleSlider copyWith({
double? min,
double? max,
int? divisions,
Color? activeColor,
Color? inactiveColor,
Color? thumbColor,
Color? overlayColor,
MouseCursor? mouseCursor,
SemanticFormatterCallback? semanticFormatterCallback,
FocusNode? focusNode,
bool? autofocus,
SliderInteraction? allowedInteraction,
bool? showTitle,
Widget? title,
double? titleSpacing,
bool? showLabel,
String Function(double value)? labelFormatter,
bool? showValue,
String Function(double value)? valueFormatter,
TextStyle? valueTextStyle,
double? valueSpacing,
bool? enabled,
double? headerSpacing,
double? footerSpacing,
}) {
return FieldStyleSlider(
min: min ?? this.min,
max: max ?? this.max,
divisions: divisions ?? this.divisions,
activeColor: activeColor ?? this.activeColor,
inactiveColor: inactiveColor ?? this.inactiveColor,
thumbColor: thumbColor ?? this.thumbColor,
overlayColor: overlayColor ?? this.overlayColor,
mouseCursor: mouseCursor ?? this.mouseCursor,
semanticFormatterCallback:
semanticFormatterCallback ?? this.semanticFormatterCallback,
focusNode: focusNode ?? this.focusNode,
autofocus: autofocus ?? this.autofocus,
allowedInteraction: allowedInteraction ?? this.allowedInteraction,
showTitle: showTitle ?? this.showTitle,
title: title ?? this.title,
titleSpacing: titleSpacing ?? this.titleSpacing,
showLabel: showLabel ?? this.showLabel,
labelFormatter: labelFormatter ?? this.labelFormatter,
showValue: showValue ?? this.showValue,
valueFormatter: valueFormatter ?? this.valueFormatter,
valueTextStyle: valueTextStyle ?? this.valueTextStyle,
valueSpacing: valueSpacing ?? this.valueSpacing,
enabled: enabled ?? this.enabled,
headerSpacing: headerSpacing ?? this.headerSpacing,
footerSpacing: footerSpacing ?? this.footerSpacing,
);
}