Hub class

SDK API contract which combines a client and scope management

Implementers

Constructors

Hub(SentryOptions options)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isEnabled bool
Check if the Hub is enabled/active.
no setter
lastEventId SentryId
Last event id recorded by the Hub
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addBreadcrumb(Breadcrumb crumb, {dynamic hint}) → void
Adds a breacrumb to the current Scope
bindClient(SentryClient client) → void
Binds a different client to the hub
captureEvent(SentryEvent event, {dynamic stackTrace, dynamic hint, ScopeCallback? withScope}) Future<SentryId>
Captures the event.
captureException(dynamic throwable, {dynamic stackTrace, dynamic hint, ScopeCallback? withScope}) Future<SentryId>
Captures the exception
captureMessage(String? message, {SentryLevel? level, String? template, List? params, dynamic hint, ScopeCallback? withScope}) Future<SentryId>
Captures the message.
clone() Hub
Clones the Hub
close() Future<void>
Flushes out the queue for up to timeout seconds and disable the Hub.
configureScope(ScopeCallback callback) → void
Configures the scope through the callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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