Increases the selected value by 1, up to max.
void increment() { if (value < max) { value++; onChanged?.call(value); } }