Response.stream constructor
Response.stream(})
Creates a one-shot streaming response.
Implementation
Response.stream(
Stream<List<int>> stream, {
this.status = 200,
this.statusText = 'OK',
HeadersInit? headers,
Uri? url,
this.redirected = false,
this.fromCache = false,
int? contentLength,
}) : body = ResponseBody.stream(stream, contentLength: contentLength),
headers = Headers(headers),
url = url ?? Uri();