FirestoreSentinel.increment constructor

FirestoreSentinel.increment(
  1. num by
)

Adds by to a numeric field, atomically.

Implementation

factory FirestoreSentinel.increment(num by) => FirestoreSentinel._(
  by is int ? FirestoreTag.incrementInt : FirestoreTag.incrementDouble,
  by,
);