onDownloadStart method Null safety

void onDownloadStart(
  1. Uri url
)

Event fired when InAppBrowser recognizes and starts a downloadable file.

url represents the url of the file.

NOTE: In order to be able to listen this event, you need to set InAppWebViewOptions.useOnDownloadStart option to true.

Official Android API: https://developer.android.com/reference/android/webkit/WebView#setDownloadListener(android.webkit.DownloadListener)

Official iOS API: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455643-webview

Implementation

void onDownloadStart(Uri url) {}