Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use ServerValue in FirebaseDatabase plugin for Flutter

How to use the ServerValue on this page and here they say the timestamp is implemented for firebase_database

like image 842
PrimeNexes Avatar asked Mar 16 '18 13:03

PrimeNexes


1 Answers

Use ServerValue.timestamp to set time

   DatabaseReference.set({
  'time': ServerValue.timestamp,
}).
like image 105
PrimeNexes Avatar answered Sep 28 '22 04:09

PrimeNexes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!