SfRangeSelector constructor

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

Creates a SfRangeSelector.

Implementation

const SfRangeSelector(
    {Key? key,
    this.min = 0.0,
    this.max = 1.0,
    this.initialValues,
    this.onChanged,
    this.onChangeStart,
    this.onChangeEnd,
    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.shouldAlwaysShowTooltip = false,
    this.enableIntervalSelection = false,
    this.enableDeferredUpdate = false,
    this.dragMode = SliderDragMode.onThumb,
    this.inactiveColor,
    this.activeColor,
    this.labelPlacement = LabelPlacement.onTicks,
    this.edgeLabelPlacement = EdgeLabelPlacement.auto,
    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(!enableIntervalSelection ||
          (enableIntervalSelection && (interval != null && interval > 0))),
      assert(controller != null || initialValues != null),
      super(key: key);