replace method

  1. @override
StreamedResponse replace({
  1. Stream<List<int>>? byteStream,
  2. int? status,
  3. String? statusText,
  4. Map<String, String>? headers,
})
override

Create a new StreamedResponse using all the values from this instance except for the parameters specified.

Implementation

@override
StreamedResponse replace(
    {Stream<List<int>>? byteStream,
    int? status,
    String? statusText,
    Map<String, String>? headers}) {
  return _response.replace(
      byteStream: byteStream,
      status: status,
      statusText: statusText,
      headers: headers);
}