Getting server timestamp of Firebase Realtime Database in Flutter/Dart
I am using Firebase Realtime DB for a messaging app written in Flutter. Whenever the user sends a new message, the message receives the timestamp of the client. This is obviously insecure. Therefore I wanna use the timestamp of my database server instead.
type int is not a subtype of type Map
I am tring to retrive data from firebase RealTime Database where inside screens i have sub screens and want to retrieve the subscreens clicks .please suggest implementation in this code