comments function

  1. @riverpod
Future<ResultsPagination<Comment>> comments(
  1. Ref ref, {
  2. int page = 1,
  3. String sortBy = 'new',
  4. String? submissionId,
  5. String? changelogId,
  6. String? commentThreadId,
})

Comments

Implementation

@riverpod
Future<fb.ResultsPagination<fb.Comment>> comments(
  Ref ref, {
  int page = 1,
  String sortBy = 'new',
  String? submissionId,
  String? changelogId,
  String? commentThreadId,
}) async {
  return _fbService.api.comment.get(
    page: page,
    sortBy: sortBy,
    submissionId: submissionId,
    changelogId: changelogId,
    commentThreadId: commentThreadId,
  );
}