screenshotKey property

GlobalKey<State<StatefulWidget>> screenshotKey
final

A unique GlobalKey for identifying the widget to be captured.

Each instance of ScreenshotController should have its own GlobalKey to capture screenshots of different widgets. This key is used to find the widget's render object and capture its content as an image.

Implementation

final GlobalKey screenshotKey = GlobalKey();