copyWith method
SliderProps
copyWith({
- double? value,
- double? min,
- double? max,
- double? step,
- String? label,
- bool? showValue,
- String? valuePrefix,
- String? valueSuffix,
- int? valueDecimals,
- SliderVariant? variant,
- ComponentSize? size,
- bool? showSteps,
- bool? disabled,
- void onChanged()?,
- bool? isRange,
- double? rangeMin,
- double? rangeMax,
- void onRangeChanged()?,
Implementation
SliderProps copyWith({
double? value,
double? min,
double? max,
double? step,
String? label,
bool? showValue,
String? valuePrefix,
String? valueSuffix,
int? valueDecimals,
SliderVariant? variant,
ComponentSize? size,
bool? showSteps,
bool? disabled,
void Function(double)? onChanged,
bool? isRange,
double? rangeMin,
double? rangeMax,
void Function(double min, double max)? onRangeChanged,
}) {
return SliderProps(
value: value ?? this.value,
min: min ?? this.min,
max: max ?? this.max,
step: step ?? this.step,
label: label ?? this.label,
showValue: showValue ?? this.showValue,
valuePrefix: valuePrefix ?? this.valuePrefix,
valueSuffix: valueSuffix ?? this.valueSuffix,
valueDecimals: valueDecimals ?? this.valueDecimals,
variant: variant ?? this.variant,
size: size ?? this.size,
showSteps: showSteps ?? this.showSteps,
disabled: disabled ?? this.disabled,
onChanged: onChanged ?? this.onChanged,
isRange: isRange ?? this.isRange,
rangeMin: rangeMin ?? this.rangeMin,
rangeMax: rangeMax ?? this.rangeMax,
onRangeChanged: onRangeChanged ?? this.onRangeChanged,
);
}