onLoadResource property
void Function(dynamic controller, LoadedResource resource)?
onLoadResource
finalinherited
Event fired when the WebView
loads a resource.
NOTE: In order to be able to listen this event, you need to set InAppWebViewSettings.useOnLoadResource
and InAppWebViewSettings.javaScriptEnabled
setting to true
.
Officially Supported Platforms/Implementations:
- Android native WebView
- iOS
- MacOS
Implementation
final void Function(T controller, LoadedResource resource)? onLoadResource;