HubAdapter class

Hub adapter to make Integrations testable

Implemented types

Constructors

HubAdapter()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isEnabled bool
Check if the Hub is enabled/active.
no setteroverride
lastEventId SentryId
Last event id recorded by the Hub
no setteroverride
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
override
bindClient(SentryClient client) → void
Binds a different client to the hub
override
captureEvent(SentryEvent event, {dynamic stackTrace, dynamic hint, ScopeCallback? withScope}) Future<SentryId>
Captures the event.
override
captureException(dynamic throwable, {dynamic stackTrace, dynamic hint, ScopeCallback? withScope}) Future<SentryId>
Captures the exception
override
captureMessage(String? message, {SentryLevel? level, String? template, List? params, dynamic hint, ScopeCallback? withScope}) Future<SentryId>
Captures the message.
override
clone() Hub
Clones the Hub
override
close() Future<void>
Flushes out the queue for up to timeout seconds and disable the Hub.
override
configureScope(ScopeCallback callback) → void
Configures the scope through the callback.
override
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