buildProfileImageView method
Implementation
ImageNetwork buildProfileImageView() {
return ImageNetwork(
url: item.profileImage.toString(),
width: 48,
height: 48,
clipOval: true,
errorWidget: item.isGroup!
? ClipOval(
child: Image.asset(
groupImg,
package: package,
height: 48,
width: 48,
fit: BoxFit.cover,
),
)
: ProfileTextImage(
text: getRecentName(item),
),
isGroup: item.isGroup.checkNull(),
blocked: item.isBlockedMe.checkNull() || item.isAdminBlocked.checkNull(),
unknown: (!item.isItSavedContact.checkNull() || item.isDeletedContact()),
);
}