increment method
Increment the counter by a given value (default is 1)
Implementation
void increment([int byValue = 1]) {
value += byValue;
}
Increment the counter by a given value (default is 1)
void increment([int byValue = 1]) {
value += byValue;
}