buildProfileImageView method

ImageNetwork buildProfileImageView(
  1. Size profileImageSize
)

Implementation

ImageNetwork buildProfileImageView(Size profileImageSize) {
  return ImageNetwork(
    url: item.profileImage.toString(),
    width: profileImageSize.width,
    height: profileImageSize.height,
    clipOval: true,
    errorWidget: item.isGroup!
        ? ClipOval(
            child: AppUtils.assetIcon(
              assetName: groupImg,
              height: profileImageSize.width,
              width: profileImageSize.height,
              fit: BoxFit.cover,
            ),
          )
        : ProfileTextImage(
            radius: profileImageSize.width / 2,
            text: getRecentName(
                item), /* item.profileName.checkNull().isEmpty
                            ? item.nickName.checkNull()
                            : item.profileName.checkNull(),*/
          ),
    isGroup: item.isGroup.checkNull(),
    blocked: item.isBlockedMe.checkNull() || item.isAdminBlocked.checkNull(),
    unknown: (!item.isItSavedContact.checkNull() || item.isDeletedContact()),
  );
}