Class

BackNavigationBehavior.PopUntilCurrentDestinationChange

Pop destinations from the backstack until there is a change in the current destination pane.

Android
PopUntilCurrentDestinationChange,

Pop destinations from the backstack until there is a change in the current destination pane.

In a single-pane layout, this should behave similarly to PopUntilScaffoldValueChange. In a multi-pane layout, it is possible for both the current destination and previous destination to be showing at the same time, so this may not result in a visual change in the scaffold.