The default GoldenFileComparator implementation for
This comparator loads golden files from the local file system, treating the golden key as a relative path from the test file's directory.
This comparator performs a very simplistic comparison, doing a byte-for-byte comparison of the encoded PNGs, returning true only if there's an exact match. This means it will fail the test if two PNGs represent the same pixels but are encoded differently.
flutter test --update-goldens, LocalFileComparator
updates the files on disk to match the rendering.
Uint8List imageBytes, Uri golden) → Future< bool>
imageBytesagainst the golden file identified by
Uri golden, Uint8List imageBytes) → Future< void>
Updates 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 non-existent method or property is accessed. [...]
) → String
Returns a string representation of this object.