serverTimestampBehavior property

ServerTimestampBehavior serverTimestampBehavior
final

If set, controls the return value for server timestamps that have not yet been set to their final value.

By specifying ServerTimestampBehavior.estimate, pending server timestamps return an estimate based on the local clock. This estimate will differ from the final value and cause these values to change once the server result becomes available.

By specifying ServerTimestampBehavior.previous, pending timestamps will be ignored and return their previous value instead.

If omitted or set to ServerTimestampBehavior.none, null will be returned by default until the server value becomes available.

Implementation

final ServerTimestampBehavior serverTimestampBehavior;