SliderStyle constructor

SliderStyle({
  1. Color? fillColor,
  2. Point<double> handleOffset = const Point<double>(0.0, 0.0),
  3. Rectangle<int> handleSize = const Rectangle<int>(0, 0, 10, 20),
  4. Color? strokeColor,
  5. SliderHandlePosition handlePosition = SliderHandlePosition.middle,
  6. double strokeWidthPx = 2.0,
})

Implementation

SliderStyle(
    {Color? fillColor,
    this.handleOffset = const Point<double>(0.0, 0.0),
    this.handleSize = const Rectangle<int>(0, 0, 10, 20),
    Color? strokeColor,
    this.handlePosition = SliderHandlePosition.middle,
    this.strokeWidthPx = 2.0})
    : fillColor = fillColor ?? StyleFactory.style.sliderFillColor,
      strokeColor = strokeColor ?? StyleFactory.style.sliderStrokeColor;