increment method Null safety
- int addend
Increases the value by the addend
.
Implementation
void increment(int addend) {
assert(addend >= 0);
_value += addend;
}
Increases the value by the addend
.
void increment(int addend) {
assert(addend >= 0);
_value += addend;
}