captureScreenShot static method
Implementation
static Future<Uint8List?> captureScreenShot(
{int maxBytes = 400 * 1024, bool compress = true}) async {
var screenshot = await DesktopScreenshot().getScreenshot();
return await f.compute(_compress1,
[screenshot, maxBytes]);
}