initializeApp static method
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 can be initialized here simply by passing no "name" as an argument in both Dart & manual initialization flows.
Implementation
static Future<FirebaseApp> initializeApp({
String? name,
FirebaseOptions? options,
}) async {
FirebaseAppPlatform app = await _delegate.initializeApp(
name: name,
options: options,
);
return FirebaseApp._(app);
}