download static method

Response download(
  1. String fileName,
  2. Uint8List bytes, {
  3. Map<String, String> headers = const {},
})

Implementation

static Response download(
  String fileName,
  Uint8List bytes, {
  Map<String, String> headers = const {},
}) =>
    Response(
      data: {
        "fileName": fileName,
        "bytes": bytes,
      },
      responseType: ResponseType.download,
      headers: headers,
    );