onLoadResourceWithCustomScheme method

Future<CustomSchemeResponse?>? onLoadResourceWithCustomScheme(
  1. WebResourceRequest request
)

Event fired when the PlatformInAppBrowser 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:

Implementation

Future<CustomSchemeResponse?>? onLoadResourceWithCustomScheme(
    WebResourceRequest request) {
  return null;
}