SfRangeSelector constructor Null safety

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

Creates a SfRangeSelector.

Implementation

const SfRangeSelector(
    {Key? key,
    this.min = 0.0,
    this.max = 1.0,
    this.initialValues,
    this.onChanged,
    this.controller,
    this.enabled = true,
    this.interval,
    this.stepSize,
    this.stepDuration,
    this.deferredUpdateDelay = 500,
    this.minorTicksPerInterval = 0,
    this.showTicks = false,
    this.showLabels = false,
    this.showDividers = false,
    this.enableTooltip = false,
    this.enableIntervalSelection = false,
    this.enableDeferredUpdate = false,
    this.dragMode = SliderDragMode.onThumb,
    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,
    required this.child})
    : assert(min != max),
      assert(interval == null || interval > 0),
      assert(stepSize == null || stepSize > 0),
      assert(controller != null || initialValues != null),
      super(key: key);