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

commonMain.com.dokar.chiptextfield.util.Modifier.ext.kt Maven / Gradle / Ivy

There is a newer version: 0.7.0-alpha05
Show newest version
package com.dokar.chiptextfield.util

import androidx.compose.ui.Modifier

inline fun Modifier.runIf(
    value: Boolean,
    block: Modifier.() -> Modifier
): Modifier {
    return if (value) {
        this.block()
    } else {
        this
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy