setValue method

void setValue(
  1. double value
)

Sets the progress to value.

Implementation

void setValue(double value) {
  final nextValue = value.clamp(0, 100).toDouble();
  if (nextValue == this.value) return;
  this.value = nextValue;
}