FirebaseAuth.instanceFor constructor Null safety

FirebaseAuth.instanceFor(
  1. {required FirebaseApp app,
  2. Persistence? persistence}
)

Returns an instance using a specified FirebaseApp. Note that persistence can only be used on Web and is not supported on other platforms.

Implementation

factory FirebaseAuth.instanceFor(
    {required FirebaseApp app, Persistence? persistence}) {
  return _firebaseAuthInstances.putIfAbsent(app.name, () {
    return FirebaseAuth._(app: app, persistence: persistence);
  });
}