initializeApp method

Future<FirebaseApp> initializeApp (
  1. {String name,
  2. 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 FlutterFire plugins.

The default app instance cannot be initialized here and should be created using the platform Firebase integration.


static Future<FirebaseApp> initializeApp(
    {String /*?*/ name, FirebaseOptions /*?*/ options}) async {
  // TODO(ehesp): Should be nullable post platform migration
  FirebaseAppPlatform app =
      await _delegate.initializeApp(name: name, options: options);
  return FirebaseApp._(app);