dispatchBackPress

Causes an emission to the current TestHostNavigator.backPresses collector to make it possible to simulate a back press in tests that check custom back press logic.


fun DestinationNavigator.dispatchBackPress()

Causes an emission to the current DestinationNavigator.backPresses collector to make it possible to simulate a back press in tests that check custom back press logic.

Note: This requires passing TestHostNavigator to DestinationNavigator.