This is an adapter for the package database that connects it to Google Cloud Firestore.
This package works only in browsers. The package database_adapter_firestore_flutter can be used in Flutter.
dependencies:
database: any
database_adapter_firestore_browser: any
import 'package:database/database.dart';
import 'package:database_adapter_firestore_browser/database_adapter_firestore_browser.dart';
Database getDatabase() {
return FirestoreBrowser().database();
}