rememberSaveableBackStack
fun rememberSaveableBackStack(root: Screen, init: SaveableBackStack.() -> Unit = {}): SaveableBackStack(source)
Creates and remembers a SaveableBackStack with the given root screen.
If root changes, a new backstack will be created.
Parameters
init
optional initializer callback to perform extra initialization logic.
Creates and remembers a SaveableBackStack filled with the given initialScreens.
initialScreens must not be empty. If initialScreens changes, a new backstack will be created.