captureScreenshotAsList method Null safety

List<int> captureScreenshotAsList()

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

Implementation

List<int> captureScreenshotAsList() {
  final base64Encoded = captureScreenshotAsBase64();
  return base64.decode(base64Encoded);
}