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.
See also the
counter properties of
Increments the counter by
amount, which can be any valid 64 bit float. Only valid within the closure of
updatemethod, otherwise an exception is thrown.