setDecrement method Null safety

void setDecrement(
  1. String key,
  2. num amount
)

Decreases a num of an object by x amount

Implementation

void setDecrement(String key, num amount) {
  set<Map<String, dynamic>>(
      key, <String, dynamic>{'__op': 'Increment', 'amount': -amount});
}