openBrowser method

dynamic openBrowser(
  1. String url, [
  2. bool isTestMode = false
])

Opens browser with URL returned from startTransaction()

Implementation

openBrowser(final String url, [final bool isTestMode = false]) async {
  final DPOInAppBrowser browser = DPOInAppBrowser(callBack: _callBack);

  var options = InAppBrowserClassOptions(
    crossPlatform: InAppBrowserOptions(hideUrlBar: true),
    inAppWebViewGroupOptions: InAppWebViewGroupOptions(
      crossPlatform: InAppWebViewOptions(javaScriptEnabled: true),
    ),
  );

  await browser.openUrlRequest(
      urlRequest: URLRequest(url: Uri.parse(url)), options: options);
}