Response.bytes constructor

Response.bytes({
  1. required int statusCode,
  2. dynamic data,
  3. Map<String, String> headers = const {HttpHeaders.contentTypeHeader : 'application/octet-stream'},
})

Implementation

Response.bytes({
  required this.statusCode,
  this.data,
  this.headers = const {
    HttpHeaders.contentTypeHeader: 'application/octet-stream',
  },
}) : contentType = 'application/octet-stream';