getBlockNetworkLoads static method
Gets whether Service Workers are prohibited from loading any resources from the network.
This method should only be called if AndroidWebViewFeature.isFeatureSupported returns true
for AndroidWebViewFeature.SERVICE_WORKER_BLOCK_NETWORK_LOADS.
NOTE: available on Android 24+.
Official Android API: https://developer.android.com/reference/androidx/webkit/ServiceWorkerWebSettingsCompat#getBlockNetworkLoads()
Implementation
static Future<bool> getBlockNetworkLoads() async {
return await ServiceWorkerController.getBlockNetworkLoads();
}