Breadcrumb class

Structured data to describe more information prior to the event captured. See Sentry.captureEvent().

The outgoing JSON representation is:

{
  "timestamp": 1000
  "message": "message",
  "category": "category",
  "data": {"key": "value"},
  "level": "info",
  "type": "default"
}

See also:

Constructors

Creates a breadcrumb that can be attached to an SentryEvent.
factory
Deserializes a Breadcrumb from JSON Map.
factory
factory
factory

Properties

category String?
A dot-separated string describing the source of the breadcrumb, e.g. "ui.click".
getter/setter pair
data Map<String, dynamic>?
Data associated with the breadcrumb.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
level SentryLevel?
Severity of the breadcrumb.
getter/setter pair
message String?
Describes the breadcrumb.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
The time the breadcrumb was recorded.
getter/setter pair
type String?
Describes what type of breadcrumb this is.
getter/setter pair

Methods

copyWith({String? message, String? category, Map<String, dynamic>? data, SentryLevel? level, String? type, DateTime? timestamp}) Breadcrumb
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this breadcrumb to a map that can be serialized to JSON according to the Sentry protocol.
toString() String
A string representation of this object.
inherited

Operators

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