SilkyFalcon

Generation

generate functionSat, 03 Dec 2022

Connect to database

import 'package:firebase_database/firebase_database.dart'; final dbRef = FirebaseDatabase.instance.reference(); dbRef.child("name").set("John"); dbRef.child("age").set(20); dbRef.child("name").once().then((DataSnapshot snapshot) { print('Connected to second database and read ${snapshot.value}'); });

Questions about programming?Chat with your personal AI assistant