copyWith method

SentryThread copyWith({
  1. int? id,
  2. String? name,
  3. bool? crashed,
  4. bool? current,
  5. SentryStackTrace? stacktrace,
})

Implementation

SentryThread copyWith({
  int? id,
  String? name,
  bool? crashed,
  bool? current,
  SentryStackTrace? stacktrace,
}) {
  return SentryThread(
    id: id ?? this.id,
    name: name ?? this.name,
    crashed: crashed ?? this.crashed,
    current: current ?? this.current,
    stacktrace: stacktrace ?? this.stacktrace,
    unknown: unknown,
  );
}