download static method

Future<Uint8List?> download(
  1. String url,
  2. [void onBytesReceived(
    1. int?,
    2. int
    )?,
  3. bool? force]
)

Implementation

static Future<Uint8List?> download(String url,
    [void Function(int?, int)? onBytesReceived, bool? force]) {
  if (isYoutubeUrl(url)) {
    return downloadFromYoutube(url, onBytesReceived, force);
  } else {
    return ModernFormDownloadHelper.downloadWithProgress(url,
        onBytesReceived: onBytesReceived);
  }
}