animateExit

fun animateExit(    subContainerData: SD,     subContainer: View,     onAnimationEnd: () -> Unit = {})

Executes an exit animation for removal of subContainer, and invokes onAnimationEnd block when the animation completes. If no animation is available, onAnimationEnd is invoked immediately.