captureScreenshotAsList method

Future<Uint8List> captureScreenshotAsList()

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

Implementation

Future<Uint8List> captureScreenshotAsList() async {
  final base64Encoded = captureScreenshotAsBase64();
  return base64.decode(await base64Encoded);
}