setIf
open fun <V> KProperty1<T, V>.setIf(condition: KProperty1<T, Boolean>, value: KProperty1<T, V>)(source)
Replaces the value of a field with the specified value, if condition is true.
If condition is false, this operator does nothing.