increment method
指定したフィールドの値をインクリメンタルする設定にする
name
フィールド名
number
インクリメントする値。省略時は1
Implementation
void increment(String name, {int number = 1}) {
if (!_fields.containsKey('objectId')) {
return set(name, number);
}
set(name, {'__op': 'Increment', 'amount': number});
}