replace method

  1. @override
Response replace({
  1. List<int>? bodyBytes,
  2. String? bodyString,
  3. int? status,
  4. String? statusText,
  5. Map<String, String>? headers,
})
override

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

Implementation

@override
Response replace(
    {List<int>? bodyBytes,
    String? bodyString,
    int? status,
    String? statusText,
    Map<String, String>? headers}) {
  return _response.replace(
      bodyBytes: bodyBytes,
      bodyString: bodyString,
      status: status,
      statusText: statusText,
      headers: headers);
}