increment method

Future<int> increment(
  1. String key, [
  2. int by = 1
])

Add by to an integer. A missing key starts at 0.

Implementation

Future<int> increment(String key, [int by = 1]) {
  return repository.increment(key, by);
}