WalletScreenExit extension

Navigation helpers shared by the wallet's pushed money surfaces (send, swap, the recovery-phrase backup screen). One source of truth for "leave this screen" so the exit logic can't drift between screens (#333 nav layering).

on

Methods

leaveToWalletRoot() → void

Available on BuildContext, provided by the WalletScreenExit extension

Leave a pushed wallet screen: pop back to the surface that pushed it, or — when this screen IS the navigation root (a host deep-link that mounted it with an empty back stack) — navigate to the wallet root instead.