DOWNLOAD property

DownloadStartResponseAction DOWNLOAD
final

Start a native plugin download to DownloadStartResponse.resultFilePath.

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView
  • macOS WKWebView

Implementation

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