FSliderStyle constructor

FSliderStyle({
  1. required FLabelLayoutStyle labelLayoutStyle,
  2. required FSliderStateStyle enabledStyle,
  3. required FSliderStateStyle disabledStyle,
  4. required FSliderErrorStyle errorStyle,
  5. double crossAxisExtent = 8,
  6. double? thumbSize,
  7. Alignment tooltipTipAnchor = Alignment.bottomCenter,
  8. Alignment tooltipThumbAnchor = Alignment.topCenter,
})

Creates a FSliderStyle.

Implementation

FSliderStyle({
  required this.labelLayoutStyle,
  required this.enabledStyle,
  required this.disabledStyle,
  required this.errorStyle,
  this.crossAxisExtent = 8,
  double? thumbSize,
  this.tooltipTipAnchor = Alignment.bottomCenter,
  this.tooltipThumbAnchor = Alignment.topCenter,
})  : assert(thumbSize == null || 0 < thumbSize, 'The thumb size must be positive'),
      thumbSize = thumbSize ?? (Touch.primary ? 25 : 20);