copyWith method
SentryRequest
copyWith(
{ - String? url,
- String? method,
- String? queryString,
- String? cookies,
- String? fragment,
- dynamic data,
- Map<String, String>? env,
- bool removeCookies = false,
- String? apiTarget,
- @Deprecated('Will be removed in v8. Use [data] instead') Map<String, String>? other,
})
Implementation
SentryRequest copyWith({
String? url,
String? method,
String? queryString,
String? cookies,
String? fragment,
dynamic data,
Map<String, String>? headers,
Map<String, String>? env,
bool removeCookies = false,
String? apiTarget,
@Deprecated('Will be removed in v8. Use [data] instead')
Map<String, String>? other,
}) =>
SentryRequest(
url: url ?? this.url,
method: method ?? this.method,
queryString: queryString ?? this.queryString,
cookies: removeCookies ? null : cookies ?? this.cookies,
data: data ?? _data,
headers: headers ?? _headers,
env: env ?? _env,
fragment: fragment ?? this.fragment,
apiTarget: apiTarget ?? this.apiTarget,
// ignore: deprecated_member_use_from_same_package
other: other ?? _other,
unknown: unknown,
);