SentryStackFrame class

Frames belong to a StackTrace It should contain at least a filename, function or instruction_addr

Annotations
  • @immutable

Constructors

SentryStackFrame({String? absPath, String? fileName, String? function, String? module, int? lineNo, int? colNo, String? contextLine, bool? inApp, String? package, bool? native, String? platform, String? imageAddr, String? symbolAddr, String? instructionAddr, String? rawFunction, bool? stackStart, String? symbol, List<int>? framesOmitted, List<String>? preContext, List<String>? postContext, Map<String, dynamic>? vars})
SentryStackFrame.fromJson(Map<String, dynamic> json)
Deserializes a SentryStackFrame from JSON Map.
factory

Properties

absPath → String?
The absolute path to filename.
final
colNo → int?
The column number of the call
final
contextLine → String?
Source code in filename at line number.
final
fileName → String?
The relative file path to the call.
final
framesOmitted → List<int>
Which frames were omitted, if any.
no setter
function → String?
The name of the function being called.
final
hashCode → int
The hash code for this object.
no setterinherited
imageAddr → String?
Optionally an address of the debug image to reference.
final
inApp → bool?
Signifies whether this frame is related to the execution of the relevant code in this stacktrace.
final
instructionAddr → String?
The instruction address The official docs refer to it as 'The difference between instruction address and symbol address in bytes.'
final
lineNo → int?
The column number of the call
final
module → String?
Platform-specific module path.
final
native → bool?
final
package → String?
The "package" the frame was contained in.
final
platform → String?
This can override the platform for a single frame. Otherwise, the platform of the event is assumed. This can be used for multi-platform stack traces
final
postContext → List<String>
An immutable list of source code lines after context_line (in order) – usually lineno + 1:lineno + 5.
no setter
preContext → List<String>
An immutable list of source code lines before context_line (in order) – usually lineno - 5:lineno.
no setter
rawFunction → String?
The original function name, if the function name is shortened or demangled. Sentry shows the raw function when clicking on the shortened one in the UI.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackStart → bool?
Marks this frame as the bottom of a chained stack trace.
final
symbol → String?
Potentially mangled name of the symbol as it appears in an executable.
final
symbolAddr → String?
An optional address that points to a symbol. We use the instruction address for symbolication, but this can be used to calculate an instruction offset automatically.
final
vars → Map<String, dynamic>
An immutable mapping of variables which were available within this frame (usually context-locals).
no setter

Methods

copyWith({String? absPath, String? fileName, String? function, String? module, int? lineNo, int? colNo, String? contextLine, bool? inApp, String? package, bool? native, String? platform, String? imageAddr, String? symbolAddr, String? instructionAddr, String? rawFunction, List<int>? framesOmitted, List<String>? preContext, List<String>? postContext, Map<String, String>? vars, bool? stackStart, String? symbol}) → SentryStackFrame
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Produces a Map that can be serialized to JSON.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

asynchronousGapFrameJson → SentryStackFrame
final