getDisplayImage function
String
getDisplayImage(
- RecentChatData recentChat
)
Implementation
String getDisplayImage(RecentChatData recentChat) {
var imageUrl = recentChat.profileImage ?? Constants.emptyString;
if (recentChat.isBlockedMe.checkNull() ||
recentChat.isAdminBlocked.checkNull()) {
imageUrl = Constants.emptyString;
//drawable = CustomDrawable(context).getDefaultDrawable(recentChat)
} else if (!recentChat.isItSavedContact.checkNull() ||
recentChat.isDeletedContact()) {
imageUrl = recentChat.profileImage ?? Constants.emptyString;
// drawable = CustomDrawable(context).getDefaultDrawable(recentChat)
}
return imageUrl;
}