ResponseBody constructor Null safety

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

Implementation

ResponseBody(
  this.stream,
  this.statusCode, {
  this.headers = const {},
  this.statusMessage,
  this.isRedirect = false,
  this.redirects,
});