SliderThemeData.standard constructor

SliderThemeData.standard(
  1. ThemeData? style
)

Implementation

factory SliderThemeData.standard(ThemeData? style) {
  final def = SliderThemeData(
    thumbColor: style?.accentColor,
    activeColor: style?.accentColor,
    inactiveColor: style?.disabledColor.withOpacity(1),
    margin: EdgeInsets.zero,
    animationDuration: style?.mediumAnimationDuration,
    animationCurve: style?.animationCurve,
    disabledActiveColor: style?.disabledColor.withOpacity(1),
    disabledThumbColor: style?.disabledColor.withOpacity(1),
    disabledInactiveColor: style?.disabledColor,
    useThumbBall: true,
  );

  return def;
}