Placeholder comparator that is set as the value of goldenFileComparator when the initialization that happens in the test bootstrap either has not yet happened or has been bypassed.
The test bootstrap file that gets generated by the Flutter tool when the
flutter test is expected to set goldenFileComparator to
a comparator that resolves golden file references relative to the test
directory. From there, the caller may choose to override the comparator by
setting it to another value during test initialization. The only case
where we expect it to remain uninitialized is when the user runs a test
flutter run. In this case, the compare method will just print a
message that it would have otherwise run a real comparison, and it will
return trivial success.
This class can't be constructed. It represents the default value of goldenFileComparator.
- Implemented types
- hashCode → int
The hash code for this object.
- runtimeType → Type
A representation of the runtime type of the object.
Uint8List imageBytes, Uri golden) → Future< bool>
Compares the pixels of decoded png
imageBytesagainst the golden file identified by
Uri key, int? version) → Uri
Returns a new golden file Uri to incorporate any
versionnumber with the
Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
) → String
A string representation of this object.
Uri golden, Uint8List imageBytes) → Future< void>
Updates the golden file identified by
Object other) → bool
The equality operator.