SfRangeSlider constructor Null safety

const SfRangeSlider(
  1. {Key? key,
  2. dynamic min = 0.0,
  3. dynamic max = 1.0,
  4. required SfRangeValues values,
  5. required ValueChanged<SfRangeValues>? onChanged,
  6. double? interval,
  7. double? stepSize,
  8. SliderStepDuration? stepDuration,
  9. int minorTicksPerInterval = 0,
  10. bool showTicks = false,
  11. bool showLabels = false,
  12. bool showDividers = false,
  13. bool enableTooltip = false,
  14. bool enableIntervalSelection = false,
  15. Color? inactiveColor,
  16. Color? activeColor,
  17. LabelPlacement labelPlacement = LabelPlacement.onTicks,
  18. NumberFormat? numberFormat,
  19. DateFormat? dateFormat,
  20. DateIntervalType? dateIntervalType,
  21. LabelFormatterCallback? labelFormatterCallback,
  22. TooltipTextFormatterCallback? tooltipTextFormatterCallback,
  23. RangeSliderSemanticFormatterCallback? semanticFormatterCallback,
  24. SfTrackShape trackShape = const SfTrackShape(),
  25. SfDividerShape dividerShape = const SfDividerShape(),
  26. SfOverlayShape overlayShape = const SfOverlayShape(),
  27. SfThumbShape thumbShape = const SfThumbShape(),
  28. SfTickShape tickShape = const SfTickShape(),
  29. SfTickShape minorTickShape = const SfMinorTickShape(),
  30. SfTooltipShape tooltipShape = const SfRectangularTooltipShape(),
  31. Widget? startThumbIcon,
  32. Widget? endThumbIcon}
)

Creates a horizontal SfRangeSlider.

Implementation

const SfRangeSlider(
    {Key? key,
    this.min = 0.0,
    this.max = 1.0,
    required this.values,
    required this.onChanged,
    this.interval,
    this.stepSize,
    this.stepDuration,
    this.minorTicksPerInterval = 0,
    this.showTicks = false,
    this.showLabels = false,
    this.showDividers = false,
    this.enableTooltip = false,
    this.enableIntervalSelection = false,
    this.inactiveColor,
    this.activeColor,
    this.labelPlacement = LabelPlacement.onTicks,
    this.numberFormat,
    this.dateFormat,
    this.dateIntervalType,
    this.labelFormatterCallback,
    this.tooltipTextFormatterCallback,
    this.semanticFormatterCallback,
    this.trackShape = const SfTrackShape(),
    this.dividerShape = const SfDividerShape(),
    this.overlayShape = const SfOverlayShape(),
    this.thumbShape = const SfThumbShape(),
    this.tickShape = const SfTickShape(),
    this.minorTickShape = const SfMinorTickShape(),
    this.tooltipShape = const SfRectangularTooltipShape(),
    this.startThumbIcon,
    this.endThumbIcon})
    : _sliderType = SliderType.horizontal,
      _tooltipPosition = null,
      assert(min != max),
      assert(interval == null || interval > 0),
      super(key: key);