Ryan Leckey
04/29/2018, 9:25 PMBottomDialogItemComponent.create(c)
.title(item.title)
.apply {
item.icon?.let { Icon(it) }
item.foregroundColor?.let { primaryColor(ContextCompat.getColor(c, it)) }
item.backgroundColor?.let { secondaryColor(ContextCompat.getColor(c, it)) } }
.dialogItemClickHandler(item.onClick)
Does using apply
like this make sense here (conditionally calling builder methods)?