captureScreenShot static method

Future<Uint8List?> captureScreenShot({
  1. int maxBytes = 400 * 1024,
  2. bool compress = true,
})

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]);
}