skip to Main Content

How to convert object to map in dart flutter

using Stream I get the data from firebase void getsds() async { DatabaseReference ref = FirebaseDatabase.instance.ref("NearbyAccidents/User1/acc_coordinates"); Stream<DatabaseEvent> stream = ref.onValue; stream.listen((DatabaseEvent event) { print('Event Type: ${event.type}'); // DatabaseEventType.value; print('Snapshot: ${event.snapshot.value}'); List<Object?> map1 = event.snapshot.value as dynamic; print(map1[0]); }); } for…

VIEW QUESTION

swift firebase queryStartingAtValue

I'm new to firebase and am trying to search the title of the product using queryStartingAtValue. in my firebase JSON and code below, I have a few levels to travel. it look like -> /item/(section name: clothing,games etc)/autoID/(product name, price)…

VIEW QUESTION
Back To Top
Search