decrement method

void decrement([
  1. num by = 1
])

Decrements the numeric value by by (default: 1).

Example:

counter.decrement(); // -1
counter.decrement(3); // -3

Implementation

void decrement([num by = 1]) => value -= by;