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["txnRef"];
  final id = url?.queryParameters["txnRef"];
  final hasRedirected = status != null && txRef != null;
  if (hasRedirected && url != null) {
    hasCompletedProcessing = hasRedirected;
    _processResponse(url, status, txRef, id);
  }
}