Take by from an integer. A missing key starts at 0.
by
Future<int> decrement(String key, [int by = 1]) { return repository.decrement(key, by); }