timestamp method

Assign a server-side timestamp to the key field.

Execute save to apply the changes.

Implementation

FirestoreDynamicDocumentModel timestamp(String key) {
  this[key] = FieldValue.serverTimestamp();
  return this;
}