ResponseBody constructor

ResponseBody(
  1. Stream<Uint8List> stream,
  2. int statusCode, {
  3. String? statusMessage,
  4. bool isRedirect = false,
  5. List<RedirectRecord>? redirects,
  6. void onClose()?,
  7. Map<String, List<String>>? headers,
})

Implementation

ResponseBody(
  this.stream,
  this.statusCode, {
  this.statusMessage,
  this.isRedirect = false,
  this.redirects,
  void Function()? onClose,
  Map<String, List<String>>? headers,
})  : headers = headers ?? {},
      _onClose = onClose;