public SliderThemeData copyWith( float?trackHeight = null, Color activeTrackColor = null, Color inactiveTrackColor = null, Color disabledActiveTrackColor = null, Color disabledInactiveTrackColor = null, Color activeTickMarkColor = null, Color inactiveTickMarkColor = null, Color disabledActiveTickMarkColor = null, Color disabledInactiveTickMarkColor = null, Color thumbColor = null, Color disabledThumbColor = null, Color overlayColor = null, Color valueIndicatorColor = null, SliderTrackShape trackShape = null, SliderTickMarkShape tickMarkShape = null, SliderComponentShape thumbShape = null, SliderComponentShape overlayShape = null, SliderComponentShape valueIndicatorShape = null, ShowValueIndicator?showValueIndicator = null, TextStyle valueIndicatorTextStyle = null ) { return(new SliderThemeData( trackHeight: trackHeight ?? this.trackHeight, activeTrackColor: activeTrackColor ?? this.activeTrackColor, inactiveTrackColor: inactiveTrackColor ?? this.inactiveTrackColor, disabledActiveTrackColor: disabledActiveTrackColor ?? this.disabledActiveTrackColor, disabledInactiveTrackColor: disabledInactiveTrackColor ?? this.disabledInactiveTrackColor, activeTickMarkColor: activeTickMarkColor ?? this.activeTickMarkColor, inactiveTickMarkColor: inactiveTickMarkColor ?? this.inactiveTickMarkColor, disabledActiveTickMarkColor: disabledActiveTickMarkColor ?? this.disabledActiveTickMarkColor, disabledInactiveTickMarkColor: disabledInactiveTickMarkColor ?? this.disabledInactiveTickMarkColor, thumbColor: thumbColor ?? this.thumbColor, disabledThumbColor: disabledThumbColor ?? this.disabledThumbColor, overlayColor: overlayColor ?? this.overlayColor, valueIndicatorColor: valueIndicatorColor ?? this.valueIndicatorColor, trackShape: trackShape ?? this.trackShape, tickMarkShape: tickMarkShape ?? this.tickMarkShape, thumbShape: thumbShape ?? this.thumbShape, overlayShape: overlayShape ?? this.overlayShape, valueIndicatorShape: valueIndicatorShape ?? this.valueIndicatorShape, showValueIndicator: showValueIndicator ?? this.showValueIndicator, valueIndicatorTextStyle: valueIndicatorTextStyle ?? this.valueIndicatorTextStyle )); }
public SliderThemeData( float?trackHeight = null, Color activeTrackColor = null, Color inactiveTrackColor = null, Color disabledActiveTrackColor = null, Color disabledInactiveTrackColor = null, Color activeTickMarkColor = null, Color inactiveTickMarkColor = null, Color disabledActiveTickMarkColor = null, Color disabledInactiveTickMarkColor = null, Color thumbColor = null, Color disabledThumbColor = null, Color overlayColor = null, Color valueIndicatorColor = null, SliderTrackShape trackShape = null, SliderTickMarkShape tickMarkShape = null, SliderComponentShape thumbShape = null, SliderComponentShape overlayShape = null, SliderComponentShape valueIndicatorShape = null, ShowValueIndicator?showValueIndicator = null, TextStyle valueIndicatorTextStyle = null ) { D.assert(trackHeight != null); D.assert(activeTrackColor != null); D.assert(inactiveTrackColor != null); D.assert(disabledActiveTrackColor != null); D.assert(disabledInactiveTrackColor != null); D.assert(activeTickMarkColor != null); D.assert(inactiveTickMarkColor != null); D.assert(disabledActiveTickMarkColor != null); D.assert(disabledInactiveTickMarkColor != null); D.assert(thumbColor != null); D.assert(disabledThumbColor != null); D.assert(overlayColor != null); D.assert(valueIndicatorColor != null); D.assert(trackShape != null); D.assert(tickMarkShape != null); D.assert(thumbShape != null); D.assert(overlayShape != null); D.assert(valueIndicatorShape != null); D.assert(valueIndicatorTextStyle != null); D.assert(showValueIndicator != null); this.trackHeight = trackHeight.Value; this.activeTrackColor = activeTrackColor; this.inactiveTrackColor = inactiveTrackColor; this.disabledActiveTrackColor = disabledActiveTrackColor; this.disabledInactiveTrackColor = disabledInactiveTrackColor; this.activeTickMarkColor = activeTickMarkColor; this.inactiveTickMarkColor = inactiveTickMarkColor; this.disabledActiveTickMarkColor = disabledActiveTickMarkColor; this.disabledInactiveTickMarkColor = disabledInactiveTickMarkColor; this.thumbColor = thumbColor; this.disabledThumbColor = disabledThumbColor; this.overlayColor = overlayColor; this.valueIndicatorColor = valueIndicatorColor; this.trackShape = trackShape; this.tickMarkShape = tickMarkShape; this.thumbShape = thumbShape; this.overlayShape = overlayShape; this.valueIndicatorShape = valueIndicatorShape; this.showValueIndicator = showValueIndicator.Value; this.valueIndicatorTextStyle = valueIndicatorTextStyle; }