bytes static method

Future<Uint8List> bytes(
  1. String url, {
  2. Map<String, String> headers = const <String, String>{},
  3. void onProgress(
    1. double progress
    )?,
  4. int connections = 1,
})

Downloads into memory silently (no list entry, no notification). final Uint8List data = await UDownloads.bytes(url)

Implementation

static Future<Uint8List> bytes(String url, {Map<String, String> headers = const <String, String>{}, void Function(double progress)? onProgress, int connections = 1}) =>
    _m.fetchBytes(url, headers: headers, onProgress: onProgress, connections: connections);