Creates a new counter that can be used as part of a document's content.
The value of the counter.
Increments the counter by amount
, which can be any valid number. Only
valid within the closure of Collection's {@link Collection.update | update()}
method, otherwise an exception is thrown.
Represents a mutable CRDT counter that can be incremented by a specific amount while updating a document.
This class can't be instantiated directly, it's returned automatically for any counter property within an update block via MutableDocumentPath.counter.