copyWith method

SentryRequest copyWith({
  1. String? url,
  2. String? method,
  3. String? queryString,
  4. String? cookies,
  5. dynamic data,
  6. Map<String, String>? headers,
  7. Map<String, String>? env,
  8. Map<String, String>? other,
})

Implementation

SentryRequest copyWith({
  String? url,
  String? method,
  String? queryString,
  String? cookies,
  dynamic data,
  Map<String, String>? headers,
  Map<String, String>? env,
  Map<String, String>? other,
}) =>
    SentryRequest(
      url: url ?? this.url,
      method: method ?? this.method,
      queryString: queryString ?? this.queryString,
      cookies: cookies ?? this.cookies,
      data: data ?? _data,
      headers: headers ?? _headers,
      env: env ?? _env,
      other: other ?? _other,
    );