setValue method

void setValue(
  1. double value
)

Sets the slider to a single value configuration.

Converts the slider to single-thumb mode with the specified value. The value should be within the slider's min/max bounds.

Implementation

void setValue(double value) {
  this.value = SliderValue.single(value);
}