database function
Accesses the Database service for the default App or a given app.
The database is also a namespace that can be used to access global constants and methods associated with the database service.
See: firebase.google.com/docs/reference/js/firebase.database.
Implementation
Database database([App? app]) {
final jsObject =
(app != null) ? firebase.database(app.jsObject) : firebase.database();
return Database.getInstance(jsObject);
}