SentryThread class

The Threads Interface specifies threads that were running at the time an event happened. These threads can also contain stack traces. See https://develop.sentry.dev/sdk/event-payloads/threads/

Annotations
  • @immutable

Constructors

SentryThread({int? id, String? name, bool? crashed, bool? current, SentryStackTrace? stacktrace, Map<String, dynamic>? unknown})
SentryThread.fromJson(Map<String, dynamic> data)
factory

Properties

crashed → bool?
Whether the crash happened on this thread.
final
current → bool?
An optional flag to indicate that the thread was in the foreground.
final
hashCode → int
The hash code for this object.
no setterinherited
id → int?
The Id of the thread.
final
name → String?
The name of the thread. On Dart platforms where Isolates are available, this can be set to Isolate.debugName
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stacktrace → SentryStackTrace?
Stack trace. See https://develop.sentry.dev/sdk/event-payloads/stacktrace/
final

Methods

copyWith({int? id, String? name, bool? crashed, bool? current, SentryStackTrace? stacktrace}) → SentryThread
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited