Implementation
set apply(NikuSlider? v) {
if (v == null) return;
if (valueIndicatorTextStyle == null)
valueIndicatorTextStyle = NikuTextStyle();
sliderType = v.sliderType ?? sliderType;
onChanged = v.onChanged ?? onChanged;
onChangeStart = v.onChangeStart ?? onChangeStart;
onChangeEnd = v.onChangeEnd ?? onChangeEnd;
min = v.min ?? min;
max = v.max ?? max;
divisions = v.divisions ?? divisions;
label = v.label ?? label;
activeColor = v.activeColor ?? activeColor;
inactiveColor = v.inactiveColor ?? inactiveColor;
thumbColor = v.thumbColor ?? thumbColor;
mouseCursor = v.mouseCursor ?? mouseCursor;
semanticFormatterCallback =
v.semanticFormatterCallback ?? semanticFormatterCallback;
focusNode = v.focusNode ?? focusNode;
autofocus = v.autofocus ?? autofocus;
trackHeight = v.trackHeight ?? trackHeight;
activeTrackColor = v.activeTrackColor ?? activeTrackColor;
inactiveTrackColor = v.inactiveTrackColor ?? inactiveTrackColor;
disabledActiveTrackColor =
v.disabledActiveTrackColor ?? disabledActiveTrackColor;
disabledInactiveTrackColor =
v.disabledInactiveTrackColor ?? disabledInactiveTrackColor;
activeTickMarkColor = v.activeTickMarkColor ?? activeTickMarkColor;
inactiveTickMarkColor = v.inactiveTickMarkColor ?? inactiveTickMarkColor;
disabledActiveTickMarkColor =
v.disabledActiveTickMarkColor ?? disabledActiveTickMarkColor;
disabledInactiveTickMarkColor =
v.disabledInactiveTickMarkColor ?? disabledInactiveTickMarkColor;
overlappingShapeStrokeColor =
v.overlappingShapeStrokeColor ?? overlappingShapeStrokeColor;
disabledThumbColor = v.disabledThumbColor ?? disabledThumbColor;
overlayColor = v.overlayColor ?? overlayColor;
valueIndicatorColor = v.valueIndicatorColor ?? valueIndicatorColor;
overlayShape = v.overlayShape ?? overlayShape;
tickMarkShape = v.tickMarkShape ?? tickMarkShape;
thumbShape = v.thumbShape ?? thumbShape;
trackShape = v.trackShape ?? trackShape;
valueIndicatorShape = v.valueIndicatorShape ?? valueIndicatorShape;
rangeTickMarkShape = v.rangeTickMarkShape ?? rangeTickMarkShape;
rangeThumbShape = v.rangeThumbShape ?? rangeThumbShape;
rangeTrackShape = v.rangeTrackShape ?? rangeTrackShape;
rangeValueIndicatorShape =
v.rangeValueIndicatorShape ?? rangeValueIndicatorShape;
showValueIndicator = v.showValueIndicator ?? showValueIndicator;
valueIndicatorTextStyle?.apply = v.valueIndicatorTextStyle;
minThumbSeparation = v.minThumbSeparation ?? minThumbSeparation;
thumbSelector = v.thumbSelector ?? thumbSelector;
$parent..$merge(v.$parent);
}