firestore function
Accesses the Firestore service for the default App or a given app.
See: firebase.google.com/docs/reference/js/firebase.firestore.
Implementation
Firestore firestore([App? app]) {
final jsObject =
(app != null) ? firebase.firestore(app.jsObject) : firebase.firestore();
return Firestore.getInstance(jsObject);
}