detach

fun detach()

Marks that the node is detached from the Compose graph and causes the callback to onDetached to be called. Multiple consecutive calls won't cause the onDetached to be called multiple times.