disableIf

fun View.disableIf(boolean: Boolean): () -> Unit

will disable the view If Condition is true else enables It