closedConversationsList property

RxList<GetAllConversationsData> get closedConversationsList

Implementation

RxList<GetAllConversationsData> get closedConversationsList {
  final closedList = _conversationsService.allConversationsList
      .where((convo) => (convo.status == 'closed'))
      .toList()
      .obs;

  closedList.sort((a, b) => b.updatedAt!.compareTo(a.updatedAt!));
  return closedList;
}