getCacheMode method

Future<CacheMode?> getCacheMode()

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.

NOTE: available on Android 24+.

Official Android API: https://developer.android.com/reference/androidx/webkit/ServiceWorkerWebSettingsCompat#getCacheMode()

Implementation

Future<CacheMode?> getCacheMode() {
  throw UnimplementedError(
      'getCacheMode is not implemented on the current platform');
}