Scope class

Scope data to be sent with the event

Constructors

Scope(SentryOptions _options)

Properties

Unmodifiable List of breadcrumbs See also:
no setter
contexts Map<String, dynamic>
Unmodifiable map of the scope contexts key/value See also:
no setter
eventProcessors List<EventProcessor>
no setter
extra Map<String, dynamic>
Arbitrary name/value pairs attached to the scope.
no setter
fingerprint List<String>
Used to deduplicate events by grouping ones with the same fingerprint together.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
level SentryLevel?
How important this event is.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tags Map<String, String>
Name/value pairs that events can be searched by.
no setter
transaction String?
The name of the transaction which generated this event, for example, the route name: "/users/<username>/".
getter/setter pair
user SentryUser?
Information about the current user.
getter/setter pair

Methods

addBreadcrumb(Breadcrumb breadcrumb, {dynamic hint}) → void
Adds a breadcrumb to the breadcrumbs queue
addEventProcessor(EventProcessor eventProcessor) → void
Adds an event processor
applyToEvent(SentryEvent event, dynamic hint) Future<SentryEvent?>
clear() → void
Resets the Scope to its default state
clearBreadcrumbs() → void
Clear all the breadcrumbs
clone() Scope
Clones the current Scope
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeContexts(String key) → void
Removes a value from the Scope's contexts
removeExtra(String key) → void
Removes an extra from the Scope
removeTag(String key) → void
Removes a tag from the Scope
setContexts(String key, dynamic value) → void
add an entry to the Scope's contexts
setExtra(String key, dynamic value) → void
Sets an extra to the Scope
setTag(String key, String value) → void
Sets a tag to the Scope
toString() String
A string representation of this object.
inherited

Operators

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