now it is possible to include nullable modifiers in attrs

This commit is contained in:
InsanusMokrassar 2022-03-02 21:57:55 +06:00
parent b836fe744e
commit 33fbd2c0be

View File

@ -10,7 +10,7 @@ import org.w3c.dom.Element
import org.w3c.dom.HTMLInputElement import org.w3c.dom.HTMLInputElement
class AttributesCollection<T : Element, Builder : AttrsBuilder<T>> ( class AttributesCollection<T : Element, Builder : AttrsBuilder<T>> (
private vararg val modifiers: UIKitModifier, private vararg val modifiers: UIKitModifier?,
private val attrs: Builder.() -> Unit = {} private val attrs: Builder.() -> Unit = {}
) { ) {
val builder: Builder.() -> Unit = { val builder: Builder.() -> Unit = {