Skip to Content
API ReferenceNavigator

Navigator

live A stack-based in-scene navigator. Maintains a stack of named routes and renders the topmost route as its content. Descendants can push and pop routes by retrieving the NavigatorHandle via context.GetInherited<NavigatorScope>().Navigator.

Constructor

Creates an Navigator with the given routes and initial route.

ParameterDescription
routesA dictionary mapping route names to builder functions. Must not be null or empty.
initialRouteThe name of the route to display first. Must be present in .
keyAn optional key for reconciliation identity.

Properties

InitialRoute

The name of the route displayed when the navigator is first mounted. Must be a key present in Routes.

Routes

The registered routes. Each key is a route name; each value is a builder that returns the element tree for that route.

Methods

CreateState

Last updated on