Flutter Firestore Server side Timestamp

spongyboss picture spongyboss · Jun 18, 2018 · Viewed 12.5k times · Source

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 not sure where to find this.

Answer

spongyboss picture spongyboss · Sep 18, 2018

As of September 5th, the updated cloud_firestore v0.8.0 library now has FieldValue.serverTimestamp(). All is now well in the universe