FirebaseTimelinePostService constructor

FirebaseTimelinePostService({
  1. required TimelineUserService userService,
  2. FirebaseApp? app,
  3. FirebaseTimelineOptions? options,
})

Implementation

FirebaseTimelinePostService({
  required TimelineUserService userService,
  FirebaseApp? app,
  FirebaseTimelineOptions? options,
}) {
  var appInstance = app ?? Firebase.app();
  _db = FirebaseFirestore.instanceFor(app: appInstance);
  _storage = FirebaseStorage.instanceFor(app: appInstance);
  _userService = userService;
  _options = options ?? const FirebaseTimelineOptions();
}