initFirestore function

Future<void> initFirestore(
  1. String projectId
)

Implementation

Future<void> initFirestore(String projectId) async {
  try {
    Firestore.initialize(projectId, useApplicationDefaultAuth: true);
    dbRunning = true;
  } catch (e) {
    dbRunning = false;
    log("Failed to initialize Firestore: $e", isError: true);
    rethrow;
  }
}