setIncrement method Null safety

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

Increases a num of an object by x amount

Implementation

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