Make goldenFileComparator a field instead of a trivial property (#146800)
Removes an unnecessary abstraction.
This commit is contained in:
parent
05747cfa65
commit
3fadf9e2fb
@ -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.
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user