close

fun close(key: NavKey)(source)

Closes the page key and every page opened above it. A list page uses this for its back button, so the detail open beside it closes with it. Closing the start page, the bottom of the stack when no shell is under it, leaves the app, as back does.