StackTrace class - dart:core library (original) (raw)

An interface implemented by all stack trace objects.

A StackTrace is intended to convey information to the user about the call sequence that triggered an exception.

These objects are created by the runtime, it is not possible to create them programmatically.

Constructors

StackTrace.fromString(String stackTraceString)

Create a StackTrace object from stackTraceString.

factory

Properties

hashCodeint

The hash code for this object.

no setterinherited

runtimeTypeType

A representation of the runtime type of the object.

no setterinherited

Methods

noSuchMethod(Invocation invocation)→ dynamic

Invoked when a nonexistent method or property is accessed.

inherited

toString()→ String

Returns a String representation of the stack trace.

override

Operators

operator ==(Object other)→ bool

The equality operator.

inherited

Static Properties

currentStackTrace

Returns a representation of the current stack trace.

no setter

Constants

empty → const _StringStackTrace

A stack trace object with no information.