onDownloadStart property Null safety

(void Function?(InAppWebViewController controller, Uri url)?) onDownloadStart

Event fired when WebView recognizes a downloadable file. To download the file, you can use the flutter_downloader plugin.

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


final void Function(InAppWebViewController controller, Uri url)?