initializeApp function

App initializeApp({
  1. String? apiKey,
  2. String? authDomain,
  3. String? databaseURL,
  4. String? projectId,
  5. String? storageBucket,
  6. String? messagingSenderId,
  7. String? name,
  8. String? measurementId,
  9. String? appId,
})

Implementation

App initializeApp({
  String? apiKey,
  String? authDomain,
  String? databaseURL,
  String? projectId,
  String? storageBucket,
  String? messagingSenderId,
  String? name,
  String? measurementId,
  String? appId,
}) {
  name ??= defaultFirebaseAppName;

  return App.getInstance(
    firebase_interop.initializeApp(
      firebase_interop.FirebaseOptions(
        apiKey: apiKey?.toJS,
        authDomain: authDomain?.toJS,
        databaseURL: databaseURL?.toJS,
        projectId: projectId?.toJS,
        storageBucket: storageBucket?.toJS,
        messagingSenderId: messagingSenderId?.toJS,
        measurementId: measurementId?.toJS,
        appId: appId?.toJS,
      ),
      name.toJS,
    ),
  );
}