setRange method

void setRange(
  1. double start,
  2. double end
)

Sets the slider to a range value configuration.

Converts the slider to dual-thumb mode with the specified start and end values. The values should be within the slider's min/max bounds with start <= end.

Implementation

void setRange(double start, double end) {
  value = SliderValue.ranged(start, end);
}