FirebaseChatDetailService constructor

FirebaseChatDetailService({
  1. required ChatUserService userService,
  2. FirebaseApp? app,
  3. FirebaseChatOptions? options,
})

Constructor for FirebaseChatDetailService.

userService: Instance of ChatUserService. app: Optional FirebaseApp instance, defaults to Firebase.app(). options: Optional FirebaseChatOptions instance, defaults to FirebaseChatOptions().

Implementation

FirebaseChatDetailService({
  required ChatUserService userService,
  FirebaseApp? app,
  FirebaseChatOptions? options,
}) {
  var appInstance = app ?? Firebase.app();

  _db = FirebaseFirestore.instanceFor(app: appInstance);
  _storage = FirebaseStorage.instanceFor(app: appInstance);
  _userService = userService;
  _options = options ?? const FirebaseChatOptions();
}