onLoadResourceWithCustomScheme property
Future<CustomSchemeResponse?> Function(T controller, WebResourceRequest request)?
onLoadResourceWithCustomScheme
final
Event fired when the WebView finds the custom-scheme while loading a resource.
Here you can handle the url request and return a CustomSchemeResponse to load a specific resource encoded to base64.
Officially Supported Platforms/Implementations:
- Android native WebView
- iOS (Official API - WKURLSchemeHandler)
- MacOS (Official API - WKURLSchemeHandler)
- Windows
Implementation
final Future<CustomSchemeResponse?> Function(
T controller, WebResourceRequest request)? onLoadResourceWithCustomScheme;