getProfileDetail method
void
getProfileDetail(
- dynamic context,
- RecentChatData chatItem,
- int index
)
Implementation
void getProfileDetail(context, RecentChatData chatItem, int index) {
getProfileDetails(chatItem.jid.checkNull()).then((value) {
if(value.jid!=null) {
profile_(value);
debugPrint("dashboard controller profile update received");
showQuickProfilePopup(
context: context,
// chatItem: chatItem,
chatTap: () {
Navigator.pop(context);
// Get.back();
if (selected.value) {
selectOrRemoveChatfromList(index);
} else {
toChatPage(context, chatItem.jid.checkNull());
}
},
callTap: () {},
videoTap: () {},
infoTap: () {
Navigator.pop(context);
// Get.back();
infoPage(context, value);
},
profile: profile_);
}
});
}