copyWith method

SliderThemeData copyWith ({Color activeTrackColor, Color inactiveTrackColor, Color disabledActiveTrackColor, Color disabledInactiveTrackColor, Color activeTickMarkColor, Color inactiveTickMarkColor, Color disabledActiveTickMarkColor, Color disabledInactiveTickMarkColor, Color thumbColor, Color disabledThumbColor, Color overlayColor, Color valueIndicatorColor, SliderComponentShape thumbShape, SliderComponentShape valueIndicatorShape, ShowValueIndicator showValueIndicator, TextStyle valueIndicatorTextStyle })

Creates a copy of this object but with the given fields replaced with the new values.

Implementation

SliderThemeData copyWith({
  Color activeTrackColor,
  Color inactiveTrackColor,
  Color disabledActiveTrackColor,
  Color disabledInactiveTrackColor,
  Color activeTickMarkColor,
  Color inactiveTickMarkColor,
  Color disabledActiveTickMarkColor,
  Color disabledInactiveTickMarkColor,
  Color thumbColor,
  Color disabledThumbColor,
  Color overlayColor,
  Color valueIndicatorColor,
  SliderComponentShape thumbShape,
  SliderComponentShape valueIndicatorShape,
  ShowValueIndicator showValueIndicator,
  TextStyle valueIndicatorTextStyle,
}) {
  return SliderThemeData(
    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,
    thumbShape: thumbShape ?? this.thumbShape,
    valueIndicatorShape: valueIndicatorShape ?? this.valueIndicatorShape,
    showValueIndicator: showValueIndicator ?? this.showValueIndicator,
    valueIndicatorTextStyle: valueIndicatorTextStyle ?? this.valueIndicatorTextStyle,
  );
}