NavigateClearingStack
Navigates the graph registered under navigatorId to destination, clearing the whole back stack so the destination becomes the only entry — the usual move after login or logout. The destination receives incomingData merged with data (with data winning on key collision) as its navigation data — only map-shaped incomingData contributes, and null values are dropped from both, since navigation arguments are never null. launchSingleTop avoids stacking a second copy when the destination is already the current entry. Dispatches onSuccess (no data) when the navigation was performed; onFailure (no data, logged) when no navigator is registered under navigatorId or it refused the navigation.
Parameters
Unique identifier of this event. Defaults to a random id.
Trigger that fires this event, built via EventTriggers.
Child events chained after this one, wired to its triggers (onSuccess, onFailure).
Screen id to navigate to.
Id of the graph (Graph/NestedNavigationGraph) to navigate.
Whether to avoid stacking a duplicate when destination is already the current entry. Defaults to true.
Extra navigation data merged with incomingData, winning on key collision. Defaults to none.