change method

int change(
  1. int v
)

Implementation

int change(int v) => (current + v).clamp(0, 100);