captureScreenshot method Null safety

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

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 can be very slow.

Implementation

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