getCacheMode static method
Gets the current setting for overriding the cache mode.
This method should only be called if WebViewFeature.isFeatureSupported returns true for WebViewFeature.SERVICE_WORKER_CACHE_MODE.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - ServiceWorkerWebSettingsCompat.getCacheMode)
Use the PlatformServiceWorkerController.isMethodSupported method to check if this method is supported at runtime.
Implementation
static Future<CacheMode?> getCacheMode() =>
PlatformServiceWorkerController.static().getCacheMode();