navigate

fun navigate(navKey: NavKey, finish: Boolean = false, singleTop: Boolean = false, navTransition: NavTransition? = null)

Pushes navKey onto the back stack.

Parameters

finish

When true, the screen that was on top before the navigation is removed (replace semantics).

singleTop

When true, navigation is skipped if navKey is already the top-most entry (matched by runtime class).

navTransition

Per-navigate animation override. When null (default), the app-level defaultTransition is used. Pass an explicit NavTransition to use a different animation for this one navigation only.