initFirestore function

void initFirestore()

Implementation

void initFirestore() {
  ensureLibraryLoaded();
  final rc = fdbFsInit();
  if (rc != 0) {
    throw StateError(
      rc == -1
          ? 'initFirestore before initDatabase: there is no App yet'
          : 'Firestore instance could not be created ($rc)',
    );
  }
}