fromPlatformCreationParams static method
Future<OffscreenWebViewSession>
fromPlatformCreationParams(
- PlatformWebViewControllerCreationParams params, {
- void onPermissionRequest(
- WebViewPermissionRequest request
Creates an offscreen session with platform-specific controller params.
Implementation
static Future<OffscreenWebViewSession> fromPlatformCreationParams(
PlatformWebViewControllerCreationParams params, {
void Function(WebViewPermissionRequest request)? onPermissionRequest,
}) async {
_verifyPlatformSupport();
return _fromOwnedController(
WebViewController.fromPlatformCreationParams(
params,
onPermissionRequest: onPermissionRequest,
),
);
}