copyWith method
Contexts
copyWith({
- SentryDevice? device,
- SentryOperatingSystem? operatingSystem,
- List<
SentryRuntime> ? runtimes, - SentryApp? app,
- SentryBrowser? browser,
- SentryCulture? culture,
- SentryGpu? gpu,
- SentryTraceContext? trace,
- SentryResponse? response,
- SentryFeedback? feedback,
Implementation
Contexts copyWith({
SentryDevice? device,
SentryOperatingSystem? operatingSystem,
List<SentryRuntime>? runtimes,
SentryApp? app,
SentryBrowser? browser,
SentryCulture? culture,
SentryGpu? gpu,
SentryTraceContext? trace,
SentryResponse? response,
SentryFeedback? feedback,
}) =>
Contexts(
device: device ?? this.device,
operatingSystem: operatingSystem ?? this.operatingSystem,
runtimes: runtimes ?? this.runtimes,
app: app ?? this.app,
browser: browser ?? this.browser,
gpu: gpu ?? this.gpu,
culture: culture ?? this.culture,
trace: trace ?? this.trace,
response: response ?? this.response,
feedback: feedback ?? this.feedback,
)..addEntries(
entries.where((element) => !_defaultFields.contains(element.key)),
);