attachScreenshot property

bool attachScreenshot
getter/setter pair

Automatically attaches a screenshot when capturing an error or exception.

Requires adding the SentryScreenshotWidget to the widget tree. Example: runApp(SentryScreenshotWidget(child: App())); The SentryScreenshotWidget has to be the root widget of the app.

Implementation

bool attachScreenshot = false;