animateToGone

fun View.animateToGone(duration: Long = DEFAULT_ANIMATION_DURATION, onEnd: () -> Unit? = null)

Counterpart of View.animateToVisible.