download method

Future<DownloaderCore> download(
  1. String url,
  2. DownloaderUtils options
)

Start a new download however, this download can only be access through DownloaderCore

Implementation

Future<DownloaderCore> download(String url, DownloaderUtils options) async {
  try {
    // ignore: cancel_subscriptions
    final subscription = await DownloadFlow.initDownload(url, options);
    return DownloaderCore(subscription, options, url);
  } catch (e) {
    rethrow;
  }
}