increment static method

bool increment(
  1. String key,
  2. num value, {
  3. Object? options,
})

Implementation

static bool increment(String key, num value, {Object? options}) {
  try {
    value = value + get(key, 0, options: options);
    return set(key, value, options: options);
  } catch (msg) {
    _log(msg);
    return false;
  }
}