tarek
09/27/2017, 5:04 PMitem.imageUrl?.let { item.resizerlink?.let { item.imageWidth?.let { item.imageHeight?.let {
Image(item.imageUrl, item.resizerlink, item.imageWidth.toInt(), item.imageHeight.toInt())
} } } }
1️⃣
return if (it.imageUrl != null && it.resizerlink != null && it.imageWidth != null && it.imageHeight != null)
Image(it.imageUrl, it.resizerlink, it.imageWidth.toInt(), it.imageHeight.toInt())
else
null
2️⃣
Which do you prefer? 1️⃣ or 2️⃣
(I’m sure there’s something even better)