captureScreenshot method

  1. @Deprecated('Use captureScreenshotAsBase64 or captureScreenshotAsList!')
Stream<int> captureScreenshot()

Take a screenshot of the current page as PNG as stream of uint8.

Don't use this method. Prefer captureScreenshotAsBase64 or captureScreenshotAsList. Returning the data as Stream

Implementation

@Deprecated('Use captureScreenshotAsBase64 or captureScreenshotAsList!')
Stream<int> captureScreenshot() async* {
  yield* Stream.fromIterable(await captureScreenshotAsList());
}