update method

void update(
  1. int n
)

Updates the _current value to n

Implementation

void update(int n) {
  _current = n;
  _render();
}