captureScreenshotBytes static method
Implementation
static Future<Uint8List> captureScreenshotBytes(
WidgetTester tester, {
required DeviceInfo device,
}) async {
final image = captureScreenshotImage(tester);
try {
return await encodeScreenshotImage(image, device);
} finally {
image.dispose();
}
}