TakeScreenshot constructor
Takes a screenshot of the current screen.
This action can be invoked either using the short-hand version:
- takeScreenshot: "my_screenshot.png"
Or using the verbose version:
- takeScreenshot:
path: "my_screenshot.png"
pixelRatio: 1.5
Implementation
const TakeScreenshot({
required this.path,
this.pixelRatio,
});