Is there some better way to write this? (can we ge...
# announcements
f
Is there some better way to write this? (can we get rid of
else Unit
?)
Copy code
fun View.inEditMode(block: () -> Unit) = if (this.isInEditMode) block() else Unit