From 6b70dc18f5403b1b783afcc44fe881ca3ab24766 Mon Sep 17 00:00:00 2001 From: Gray Mackall <34871572+gmackall@users.noreply.github.com> Date: Tue, 15 Aug 2023 13:46:37 -0700 Subject: [PATCH] [integration_test] Update outdated onScreenshot signature in README code snippet (#132409) Fixes https://github.com/flutter/flutter/issues/126690. Encountered while testing https://github.com/flutter/flutter/pull/132406. Updates the signature to be in line with the [current typedef](https://github.com/flutter/flutter/blob/b3096225e0ebc005ed678fa7a9f03164caba1d73/packages/integration_test/lib/common.dart#L26). --- packages/integration_test/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/integration_test/README.md b/packages/integration_test/README.md index 7ba3a031c3..305fad3241 100644 --- a/packages/integration_test/README.md +++ b/packages/integration_test/README.md @@ -140,7 +140,7 @@ import 'package:integration_test/integration_test_driver_extended.dart'; Future main() async { await integrationDriver( - onScreenshot: (String screenshotName, List screenshotBytes) async { + onScreenshot: (String screenshotName, List screenshotBytes, [Map? args]) async { final File image = File('$screenshotName.png'); image.writeAsBytesSync(screenshotBytes); // Return false if the screenshot is invalid.