collapse

suspend fun collapse(animated: Boolean = true, animationSpec: AnimationSpec<Float>? = null)(source)

Collapses the header. The body keeps its own scroll position.

Parameters

animationSpec

Spec for the move; null uses the header config's animationSpec.