OnErrorIntegration class

Integration which captures PlatformDispatcher.onError See:

Remarks:

  • Only usable on Flutter >= 3.3.0.
  • Does not work on Flutter Web

This is used instead of RunZonedGuardedIntegration. Not using the RunZonedGuardedIntegration results in a minimal improved startup time, since creating Zones is not cheap.

Implemented types

Constructors

OnErrorIntegration({PlatformDispatcherWrapper? dispatchWrapper})

Properties

dispatchWrapper PlatformDispatcherWrapper?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(Hub hub, SentryFlutterOptions options) → void
A Callable method for the Integration interface
override
close() → void
NoOp by default : only closeable integrations need to override
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