BLOCK property

Stops loading of the resource. If the resource was cached, the cache is ignored.

Officially Supported Platforms/Implementations:

  • Android native WebView
  • iOS
  • MacOS

Implementation

static final BLOCK =
    ContentBlockerActionType._internalMultiPlatform('block', () {
  switch (defaultTargetPlatform) {
    case TargetPlatform.android:
      return 'block';
    case TargetPlatform.iOS:
      return 'block';
    case TargetPlatform.macOS:
      return 'block';
    default:
      break;
  }
  return null;
});