deleteOrigin method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebStorage.deleteOrigin', apiUrl: 'https://developer.android.com/reference/android/webkit/WebStorage#deleteOrigin(java.lang.String)')])
Future<void> deleteOrigin({
  1. required String origin,
})

Clears the storage currently being used by both the Application Cache and Web SQL Database APIs by the given origin. The origin is specified using its string representation.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • origin: all platforms

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

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(
      apiName: 'WebStorage.deleteOrigin',
      apiUrl:
          'https://developer.android.com/reference/android/webkit/WebStorage#deleteOrigin(java.lang.String)',
    ),
  ],
)
Future<void> deleteOrigin({required String origin}) {
  throw UnimplementedError(
    'deleteOrigin is not implemented on the current platform',
  );
}