UrlChangeCallback typedef
UrlChangeCallback =
void Function(String url)
Callback function type for handling URL changes in the payment browser.
This callback receives the new URL whenever the browser navigates to a different page. It can be used to:
- Track payment progress
- Detect specific payment states
- Monitor for security issues
Parameters:
url
: The new URL that the browser has navigated to
Implementation
typedef UrlChangeCallback = void Function(String url);