widgets/popups/kat_exit_popup library

Functions

katExitPopup(BuildContext context) Future<bool>
Shows a modal exit-confirmation popup (built on katConfirmPopup) with "Yes"/"No" actions. Resolves to true when the user confirms leaving, false if declined or dismissed.
popInvoked(BuildContext context, bool didPop) Future<void>
Pop handler for PopScope's onPopInvoked/onPopInvokedWithResult: when a framework-driven pop is intercepted (didPop == false), shows katExitPopup and, if the user confirms, pops the route programmatically.