``` BottomDialogItemComponent.create(c) ...
# announcements
r
Copy code
BottomDialogItemComponent.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)?