BLOCK property

ContentBlockerActionType BLOCK
final

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

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView
  • macOS WKWebView
  • Linux WPE WebKit

Implementation

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