copyWith method

SentryException copyWith({
  1. String? type,
  2. String? value,
  3. String? module,
  4. SentryStackTrace? stackTrace,
  5. Mechanism? mechanism,
  6. int? threadId,
  7. dynamic throwable,
})

Implementation

SentryException copyWith({
  String? type,
  String? value,
  String? module,
  SentryStackTrace? stackTrace,
  Mechanism? mechanism,
  int? threadId,
  dynamic throwable,
}) =>
    SentryException(
      type: type ?? this.type,
      value: value ?? this.value,
      module: module ?? this.module,
      stackTrace: stackTrace ?? this.stackTrace,
      mechanism: mechanism ?? this.mechanism,
      threadId: threadId ?? this.threadId,
      throwable: throwable ?? this.throwable,
    );