downloadBytes method

Future<Uint8List> downloadBytes(
  1. String url
)

Implementation

Future<Uint8List> downloadBytes(String url) {
  return dio
      .get(
        url,
        options: Options(
          responseType: ResponseType.bytes,
        ),
      )
      .then(
        (response) => response.data,
      );
}