decrement static method

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

Subtracts by from the integer under key and returns the new value.

Implementation

static Future<int> decrement(String key, [int by = 1]) =>
    store().decrement(key, by);