getAllowFileAccess static method

Future<bool> getAllowFileAccess()

Gets whether Service Workers support file access. This method should only be called if WebViewFeature.isFeatureSupported returns true for WebViewFeature.SERVICE_WORKER_FILE_ACCESS.

Officially Supported Platforms/Implementations:

Use the PlatformServiceWorkerController.isMethodSupported method to check if this method is supported at runtime.

Implementation

static Future<bool> getAllowFileAccess() =>
    PlatformServiceWorkerController.static().getAllowFileAccess();