increment method

void increment()

Increments the value by 1.

Implementation

void increment() => value = value + 1;