I need to add a server side timestamp on new documents added to Firestore using a Flutter app. I see I am supposed to use FieldValue.serverTimestamp but I am no
FieldValue.serverTimestamp
'timestamp' : Timestamp.now()
Timestamp.now() is part of cloud_firestore;
Example Screenshot showing that the library is imported from cloud_firestore, and creates a server-generated timestamp in the written data. Docs
a server-generated timestamp in the written data.