onLoadStart method

  1. @override
Future onLoadStart(
  1. Uri? url
)

Event fired when the InAppBrowser starts to load an url.

Supported Platforms/Implementations:

Implementation

@override
Future onLoadStart(url) async {
  final status = url?.queryParameters["status"];
  final txRef = url?.queryParameters["tx_ref"];
  final id = url?.queryParameters["transaction_id"];
  final hasRedirected = status != null && txRef != null;
  if (hasRedirected && url != null) {
    hasCompletedProcessing = hasRedirected;
    _processResponse(url, status, txRef, id);
  }
}