readBytes method

Future<Uint8List> readBytes(
  1. dynamic url, {
  2. Map<String, String>? headers,
  3. Map<String, dynamic>? params,
})

Executes client.readBytes with a new Client instance and closes it after it has been used.

Implementation

Future<Uint8List> readBytes(
  url, {
  Map<String, String>? headers,
  Map<String, dynamic>? params,
}) =>
    _withClient((client) => client.readBytes(
          url,
          headers: headers,
          params: params,
        ));