Make the matchesGoldenFile docs link to an explanation of how to create golden image files (#31093)

This commit is contained in:
James D. Lin
2019-04-29 05:43:24 -07:00
committed by Michael Goderbauer
parent bf8262d85b
commit ae5749819b

View File

@@ -297,6 +297,9 @@ Matcher coversSameAreaAs(Path expectedPath, { @required Rect areaToCompare, int
/// await expectLater(imageFuture, matchesGoldenFile('save.png'));
/// ```
///
/// Golden image files can be created or updated by running `flutter test
/// --update-goldens` on the test.
///
/// See also:
///
/// * [goldenFileComparator], which acts as the backend for this matcher.