All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.kotlinx.css.StyleList.kt Maven / Gradle / Ivy

package kotlinx.css

open class StyleList(private val delimiter: String) {
    private val list = mutableListOf()

    override fun toString() = when {
        list.isEmpty() -> "none"
        else -> list.joinToString(delimiter)
    }

    fun clear() = list.clear()

    operator fun plusAssign(item: T) {
        list += item
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy