Make goldenFileComparator a field instead of a trivial property (#146800)

Removes an unnecessary abstraction.
This commit is contained in:
Ian Hickson 2024-04-17 14:55:55 -07:00 committed by GitHub
parent 05747cfa65
commit 3fadf9e2fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -127,11 +127,7 @@ abstract class GoldenFileComparator {
/// ///
/// * [flutter_test] for more information about how to configure tests at the /// * [flutter_test] for more information about how to configure tests at the
/// directory-level. /// directory-level.
GoldenFileComparator get goldenFileComparator => _goldenFileComparator; GoldenFileComparator goldenFileComparator = const TrivialComparator._();
GoldenFileComparator _goldenFileComparator = const TrivialComparator._();
set goldenFileComparator(GoldenFileComparator value) {
_goldenFileComparator = value;
}
/// Compares image pixels against a golden image file. /// Compares image pixels against a golden image file.
/// ///