CANCEL property

DownloadStartResponseAction CANCEL
final

Cancel the download.

Officially Supported Platforms/Implementations:

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

Implementation

static final CANCEL = DownloadStartResponseAction._internalMultiPlatform(
  0,
  () {
    switch (defaultTargetPlatform) {
      case TargetPlatform.android:
        return 0;
      case TargetPlatform.iOS:
        return 0;
      case TargetPlatform.macOS:
        return 0;
      case TargetPlatform.windows:
        return 0;
      case TargetPlatform.linux:
        return 0;
      default:
        break;
    }
    return null;
  },
);