attachScreenshot method

void attachScreenshot(
  1. Uint8List screenshot, {
  2. required bool goldenCompatible,
  3. required String id,
})

Attaches the given screenshot to the test report.

Implementation

void attachScreenshot(
  Uint8List screenshot, {
  required bool goldenCompatible,
  required String id,
}) {
  final image = TestImage(
    goldenCompatible: goldenCompatible,
    id: id,
    image: screenshot,
  );
  _images?.add(image);
  _imageStreamController?.add(image);
}