SfRangeSelector constructor
const
SfRangeSelector({
- Key? key,
- dynamic min = 0.0,
- dynamic max = 1.0,
- SfRangeValues? initialValues,
- ValueChanged<
SfRangeValues> ? onChanged, - ValueChanged<
SfRangeValues> ? onChangeStart, - ValueChanged<
SfRangeValues> ? onChangeEnd, - RangeController? controller,
- bool enabled = true,
- double? interval,
- double? stepSize,
- SliderStepDuration? stepDuration,
- int deferredUpdateDelay = 500,
- int minorTicksPerInterval = 0,
- bool showTicks = false,
- bool showLabels = false,
- bool showDividers = false,
- bool enableTooltip = false,
- bool shouldAlwaysShowTooltip = false,
- bool enableIntervalSelection = false,
- bool enableDeferredUpdate = false,
- SliderDragMode dragMode = SliderDragMode.onThumb,
- Color? inactiveColor,
- Color? activeColor,
- LabelPlacement labelPlacement = LabelPlacement.onTicks,
- EdgeLabelPlacement edgeLabelPlacement = EdgeLabelPlacement.auto,
- NumberFormat? numberFormat,
- DateFormat? dateFormat,
- DateIntervalType? dateIntervalType,
- LabelFormatterCallback? labelFormatterCallback,
- TooltipTextFormatterCallback? tooltipTextFormatterCallback,
- RangeSelectorSemanticFormatterCallback? semanticFormatterCallback,
- SfTrackShape trackShape = const SfTrackShape(),
- SfDividerShape dividerShape = const SfDividerShape(),
- SfOverlayShape overlayShape = const SfOverlayShape(),
- SfThumbShape thumbShape = const SfThumbShape(),
- SfTickShape tickShape = const SfTickShape(),
- SfTickShape minorTickShape = const SfMinorTickShape(),
- SfTooltipShape tooltipShape = const SfRectangularTooltipShape(),
- Widget? startThumbIcon,
- Widget? endThumbIcon,
- 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);