SentryFlutter mixin
Sentry Flutter 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 Methods
-
captureScreenshot(
) → Future< SentryAttachment?> - Uses SentryScreenshotWidget to capture the current screen as a SentryAttachment.
-
init(
FlutterOptionsConfiguration optionsConfiguration, {AppRunner? appRunner, SentryFlutterOptions? options}) → Future< void> - Initializes the Sentry Flutter SDK.
-
nativeCrash(
) → Future< void> -
Use
nativeCrash()to crash the native implementation and test/debug the crash reporting for native code. This should not be used in production code. Only for Android, iOS and macOS -
pauseAppHangTracking(
) → Future< void> - Pauses the app hang tracking. Only for iOS and macOS.
-
reportFullyDisplayed(
) → Future< void> -
Reports the time it took for the screen to be fully displayed.
This requires the SentryFlutterOptions.enableTimeToFullDisplayTracing option to be set to
true. -
resumeAppHangTracking(
) → Future< void> - Resumes the app hang tracking. Only for iOS and macOS
-
setAppStartEnd(
DateTime appStartEnd) → void - Manually set when your app finished startup. Make sure to set SentryFlutterOptions.autoAppStart to false on init. The timeout duration for this to work is 10 seconds.