initStorage function

void initStorage()

Binds Storage to the app already initialized by initFirebase.

Implementation

void initStorage() {
  ensureLibraryLoaded();
  final rc = fdbStorageInit();
  if (rc != 0) {
    throw StateError(
      rc == -1
          ? 'initStorage before the Firebase app was initialized'
          : 'Storage instance could not be created ($rc)',
    );
  }
}