increment method

void increment()

Increments the value by the interval.

Implementation

void increment() {
  value = _value + interval;
}