copyWith method

ResponseDetails copyWith({
  1. int? statusCode,
  2. String? url,
  3. dynamic headers,
  4. dynamic responseBody,
})

Implementation

ResponseDetails copyWith({
  int? statusCode,
  String? url,
  dynamic headers,
  dynamic responseBody,
}) {
  return ResponseDetails(
    url: url ?? this.url,
    statusCode: statusCode ?? this.statusCode,
    headers: headers ?? this.headers,
    responseBody: responseBody ?? this.responseBody,
  );
}