buildProfileImage method

InkWell buildProfileImage(
  1. RecentChatItemStyle recentChatItemStyle
)

Implementation

InkWell buildProfileImage(RecentChatItemStyle recentChatItemStyle) {
  return InkWell(
    onTap: () => onAvatarClick != null ? onAvatarClick!(item) : null,
    child: Container(
        margin:
            const EdgeInsets.only(left: 19.0, top: 10, bottom: 10, right: 10),
        child: Stack(
          children: [
            buildProfileImageView(recentChatItemStyle.profileImageSize),
            item.isConversationUnRead!
                ? buildConvReadIcon(recentChatItemStyle.unreadCountTextStyle,
                    recentChatItemStyle.unreadCountBgColor)
                : const Offstage(),
            item.isEmailContact().checkNull()
                ? buildEmailIcon()
                : const Offstage(),
          ],
        )),
  );
}