toNavigationEntry

fun Navigatable.toNavigationEntry(path: String, params: Params = Params.empty(), stackPosition: Int = 0): NavigationEntry(source)

Creates a NavigationEntry for this Navigatable at the given path.

Return

A new NavigationEntry with Navigatable.route as NavigationEntry.navigatableRoute.

Parameters

path

Full slash-separated path for the entry.

params

Parameters to attach to the entry.

stackPosition

The entry's zero-based position in the back stack.