initializeApp static method

Future<FirebaseApp> initializeApp({
  1. String? name,
  2. required FirebaseOptions options,
})

Initializes a new FirebaseApp instance by name and options and returns the created app. This method should be called before any usage of the Dart only *_dart plugins.

If no name is passed, the options will be considered as the DEFAULT app.

Implementation

static Future<FirebaseApp> initializeApp({
  String? name,
  required FirebaseOptions options,
}) async {
  return _delegate.initializeApp(
    name: name,
    options: options,
  );
}