isHostScreenshotDiagnostic function
True when a screenshot diagnostic should never fail the host test.
Implementation
bool isHostScreenshotDiagnostic(Object? error) {
return classifyScreenshotCaptureFailure(error) ==
ScreenshotCaptureFailureKind.unpaintedRenderView;
}