copyWith method

SliderThemeData copyWith(
  1. SliderThemeData? style
)

Implementation

SliderThemeData copyWith(SliderThemeData? style) {
  return SliderThemeData(
    margin: style?.margin ?? margin,
    cursor: style?.cursor ?? cursor,
    animationCurve: style?.animationCurve ?? animationCurve,
    animationDuration: style?.animationDuration ?? animationDuration,
    thumbColor: style?.thumbColor ?? thumbColor,
    activeColor: style?.activeColor ?? activeColor,
    inactiveColor: style?.inactiveColor ?? inactiveColor,
    disabledActiveColor: style?.disabledActiveColor ?? disabledActiveColor,
    disabledInactiveColor:
        style?.disabledInactiveColor ?? disabledInactiveColor,
    disabledThumbColor: style?.disabledThumbColor ?? disabledThumbColor,
    labelBackgroundColor: style?.labelBackgroundColor ?? labelBackgroundColor,
    useThumbBall: style?.useThumbBall ?? useThumbBall,
  );
}