copyWith method

SentryResponse copyWith({
  1. int? statusCode,
  2. int? bodySize,
  3. Map<String, String>? headers,
  4. String? cookies,
  5. Object? data,
})

Implementation

SentryResponse copyWith({
  int? statusCode,
  int? bodySize,
  Map<String, String>? headers,
  String? cookies,
  Object? data,
}) =>
    SentryResponse(
      headers: headers ?? _headers,
      cookies: cookies ?? this.cookies,
      bodySize: bodySize ?? this.bodySize,
      statusCode: statusCode ?? this.statusCode,
      data: data ?? this.data,
    );