update method

void update(
  1. int value
)

Set the progress bar to a specific value

Implementation

void update(int value) {
  _current = value.clamp(0, total);
  _render();
}