copyWith method

IOStreamedResponse copyWith({
  1. Stream<List<int>>? stream,
  2. int? statusCode,
  3. int? contentLength,
  4. BaseRequest? request,
  5. Map<String, String>? headers,
  6. bool? isRedirect,
  7. bool? persistentConnection,
  8. String? reasonPhrase,
  9. HttpClientResponse? inner,
})

Implementation

IOStreamedResponse copyWith({
  Stream<List<int>>? stream,
  int? statusCode,
  int? contentLength,
  BaseRequest? request,
  Map<String, String>? headers,
  bool? isRedirect,
  bool? persistentConnection,
  String? reasonPhrase,
  HttpClientResponse? inner,
}) {
  return IOStreamedResponse(
    stream ?? this.stream,
    statusCode ?? this.statusCode,
    contentLength: contentLength ?? this.contentLength,
    request: request ?? this.request,
    headers: headers ?? this.headers,
    isRedirect: isRedirect ?? this.isRedirect,
    persistentConnection: persistentConnection ?? this.persistentConnection,
    reasonPhrase: reasonPhrase ?? this.reasonPhrase,
    inner: inner,
  );
}