preconnect method
Officially Supported Platforms/Implementations:
- Android WebView 110+ (Official API - Profile.preconnect):
- Requires WebViewFeature.PRECONNECT.
Parameters - Officially Supported Platforms/Implementations:
containerId: all platformsurl: all platforms
Use the PlatformContainerController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<bool> preconnect({
required String containerId,
required String url,
}) => platform.preconnect(containerId: containerId, url: url);