animateOut

abstract fun animateOut(onEnd: () -> Unit)

Plays the exit animation, then invokes onEnd on the main thread.