SfSlider constructor Null safety

const SfSlider(
  1. {Key? key,
  2. dynamic min = 0.0,
  3. dynamic max = 1.0,
  4. required dynamic value,
  5. required ValueChanged? 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. Color? activeColor,
  15. Color? inactiveColor,
  16. LabelPlacement labelPlacement = LabelPlacement.onTicks,
  17. NumberFormat? numberFormat,
  18. DateFormat? dateFormat,
  19. DateIntervalType? dateIntervalType,
  20. LabelFormatterCallback? labelFormatterCallback,
  21. TooltipTextFormatterCallback? tooltipTextFormatterCallback,
  22. SfSliderSemanticFormatterCallback? semanticFormatterCallback,
  23. SfTrackShape trackShape = const SfTrackShape(),
  24. SfDividerShape dividerShape = const SfDividerShape(),
  25. SfOverlayShape overlayShape = const SfOverlayShape(),
  26. SfThumbShape thumbShape = const SfThumbShape(),
  27. SfTickShape tickShape = const SfTickShape(),
  28. SfTickShape minorTickShape = const SfMinorTickShape(),
  29. SfTooltipShape tooltipShape = const SfRectangularTooltipShape(),
  30. Widget? thumbIcon}
)

Creates a horizontal SfSlider.

Implementation

const SfSlider(
    {Key? key,
    this.min = 0.0,
    this.max = 1.0,
    required this.value,
    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.activeColor,
    this.inactiveColor,
    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.thumbIcon})
    : isInversed = false,
      _sliderType = SliderType.horizontal,
      _tooltipPosition = null,
      assert(min != max),
      assert(interval == null || interval > 0),
      super(key: key);