decrementInPath method

Future<void> decrementInPath(
  1. String path,
  2. num value, [
  3. TransactionId? transactionId
])

Decrements the value at the given path by the given value. The given value may be both positive and negative.

Implementation

Future<void> decrementInPath(String path, num value,
        [TransactionId? transactionId]) =>
    incrementInPath(path, -value, transactionId);