increment method
DocumentTransactionBuilder
increment(
- String key,
- num value, {
- List<
CounterUpdaterInterval> intervals = const [],
override
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
@override
DocumentTransactionBuilder increment(
String key,
num value, {
List<CounterUpdaterInterval> intervals = const [],
}) {
_enableCounter = true;
_counterKey = key;
_counterValue = value;
_counterIntervals = intervals;
return this;
}