increment method
DynamicDocumentModel
increment(
- String key,
- num value, {
- List<
CounterUpdaterInterval> intervals = const [],
Increments the value specified by key
by value
.
It is also possible to specify a minus value for value
.
By specifying intervals
,
it is possible to perform aggregation separated by periods.
Implementation
DynamicDocumentModel increment(
String key,
num value, {
List<CounterUpdaterInterval> intervals = const [],
}) {
_buildCounterUpdate(
map: this,
key: key,
value: value,
counterIntervals: intervals,
);
return this;
}