pendingConversationsList property

RxList<GetAllConversationsData> get pendingConversationsList

Implementation

RxList<GetAllConversationsData> get pendingConversationsList {
  final pendingList = _conversationsService.allConversationsList
      .where((convo) => (convo.status == 'pending'))
      .toList()
      .obs;

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