Breadcrumb class

Structed data to describe more information pior 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:

Annotations

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".
final
data Map<String, dynamic>?
Data associated with the breadcrumb.
final
hashCode int
The hash code for this object.
read-onlyinherited
level SentryLevel?
Severity of the breadcrumb.
final
message String?
Describes the breadcrumb.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
timestamp DateTime
The time the breadcrumb was recorded.
final
type String?
Describes what type of breadcrumb this is.
final

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