add method

void add(
  1. int other
)

Adds other to the current value.

Implementation

void add(int other) => value = value + other;