isHostScreenshotCaptureFailure function
Raster / encode failures from host screenshot capture (not app crashes).
Implementation
bool isHostScreenshotCaptureFailure(Object? error) {
return classifyScreenshotCaptureFailure(error) ==
ScreenshotCaptureFailureKind.renderCapture;
}