Skip to content

Commit 3fadf9e

Browse files
authored
Make goldenFileComparator a field instead of a trivial property (#146800)
Removes an unnecessary abstraction.
1 parent 05747cf commit 3fadf9e

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

packages/flutter_test/lib/src/goldens.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,7 @@ abstract class GoldenFileComparator {
127127
///
128128
/// * [flutter_test] for more information about how to configure tests at the
129129
/// directory-level.
130-
GoldenFileComparator get goldenFileComparator => _goldenFileComparator;
131-
GoldenFileComparator _goldenFileComparator = const TrivialComparator._();
132-
set goldenFileComparator(GoldenFileComparator value) {
133-
_goldenFileComparator = value;
134-
}
130+
GoldenFileComparator goldenFileComparator = const TrivialComparator._();
135131

136132
/// Compares image pixels against a golden image file.
137133
///

0 commit comments

Comments
 (0)