context

abstract val context: Any?(source)

The root context that will be provided to all routes in the route tree.

This can be used to provide a context to all routes in the tree without having to provide it to each route individually.

Optional or required if the root route was created with createRootRouteWithContext().

API Docs Guide