FirebaseAuthPlatform.instanceFor constructor Null safety

FirebaseAuthPlatform.instanceFor(
  1. {required FirebaseApp app,
  2. required Map pluginConstants}
)

Create an instance using app using the existing implementation

Implementation

factory FirebaseAuthPlatform.instanceFor({
  required FirebaseApp app,
  required Map<dynamic, dynamic> pluginConstants,
}) {
  return FirebaseAuthPlatform.instance.delegateFor(app: app).setInitialValues(
      languageCode: pluginConstants['APP_LANGUAGE_CODE'],
      currentUser: pluginConstants['APP_CURRENT_USER'] == null
          ? null
          : Map<String, dynamic>.from(pluginConstants['APP_CURRENT_USER']));
}