FirebaseChatUserService constructor

FirebaseChatUserService({
  1. FirebaseApp? app,
  2. FirebaseChatOptions? options,
})

Constructor for FirebaseChatUserService.

app: The Firebase app instance. options: The options for configuring Firebase Chat.

Implementation

FirebaseChatUserService({
  FirebaseApp? app,
  FirebaseChatOptions? options,
}) {
  var appInstance = app ?? Firebase.app();

  _db = FirebaseFirestore.instanceFor(app: appInstance);
  _auth = FirebaseAuth.instanceFor(app: appInstance);
  _options = options ?? const FirebaseChatOptions();
}