Sentry class

Sentry SDK main entry point

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Properties

currentHub Hub
Returns the current hub
no setter
isEnabled bool
Check if the current Hub is enabled/active.
no setter
lastEventId SentryId
Last event id recorded by the current Hub
no setter

Static Methods

addBreadcrumb(Breadcrumb crumb, {dynamic hint}) → void
Adds a breacrumb to the current Scope
bindClient(SentryClient client) → void
Binds a different client to the current hub
captureEvent(SentryEvent event, {dynamic stackTrace, dynamic hint, ScopeCallback? withScope}) Future<SentryId>
Reports an event to Sentry.io.
captureException(dynamic throwable, {dynamic stackTrace, dynamic hint, ScopeCallback? withScope}) Future<SentryId>
Reports the throwable and optionally its stackTrace to Sentry.io.
captureMessage(String? message, {SentryLevel? level = SentryLevel.info, String? template, List? params, dynamic hint, ScopeCallback? withScope}) Future<SentryId>
clone() Hub
Clones the current Hub
close() Future<void>
Close the client SDK
configureScope(ScopeCallback callback) → void
Configures the scope through the callback.
init(OptionsConfiguration optionsConfiguration, {AppRunner? appRunner, SentryOptions? options}) Future<void>
Initializes the SDK passing a AppRunner callback allows to run the app within its own error zone (runZonedGuarded)