getFeeds method

Future<List<PeamanFeed>> getFeeds({
  1. MyQuery query(
    1. MyQuery
    )?,
})

Implementation

Future<List<PeamanFeed>> getFeeds({
  final MyQuery Function(MyQuery)? query,
}) {
  final _ref = PeamanReferenceHelper.feedsCol
      .where('visibility', isEqualTo: true)
      .orderBy('created_at', descending: true);
  final _query = query?.call(_ref) ?? _ref;
  return _query.get().then(_feedsFromFirebase);
}