Usage
To use this plugin, add firebase_database
as a dependency in your pubspec.yaml file. You will also need the firebase_core
dependency if you do not have it already.
Example connecting to the default database:
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_database/firebase_database.dart';
final FirebaseApp app = FirebaseApp(name: '[DEFAULT]');
final DatabaseReference db = FirebaseDatabase(app: firebaseApp).reference();
db.child('your_db_child').once().then((result) => print('result = $result'));