commentsListProvider top-level property

dynamic commentsListProvider
final

Implementation

final commentsListProvider = FutureProvider.family
    .autoDispose<List<Comment>, CommentsManager>((ref, manager) async {
  final commentList = (await manager.comments()).toList();
  commentList.sort(
    (a, b) => b.originServerTs().compareTo(a.originServerTs()),
  );
  return commentList;
});