Skip to content

Commit 14aa242

Browse files
Create MVP for Failure Scenes (#59)
1 parent d57b323 commit 14aa242

File tree

3 files changed

+515
-24
lines changed

3 files changed

+515
-24
lines changed

lib/src/goldens/golden_collections.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,14 @@ class GoldenScreenshotMetadata {
6868
///
6969
/// This is *NOT* the same thing as the platform used to run the golden test suite.
7070
final TargetPlatform simulatedPlatform;
71+
72+
GoldenScreenshotMetadata copyWith({
73+
String? description,
74+
TargetPlatform? simulatedPlatform,
75+
}) {
76+
return GoldenScreenshotMetadata(
77+
description: description ?? this.description,
78+
simulatedPlatform: simulatedPlatform ?? this.simulatedPlatform,
79+
);
80+
}
7181
}

0 commit comments

Comments
 (0)