[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](b3096225e0/packages/integration_test/lib/common.dart (L26)).
This commit is contained in:
Gray Mackall 2023-08-15 13:46:37 -07:00 committed by GitHub
parent 0c10e1ca54
commit 6b70dc18f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,7 @@ import 'package:integration_test/integration_test_driver_extended.dart';
Future<void> main() async {
await integrationDriver(
onScreenshot: (String screenshotName, List<int> screenshotBytes) async {
onScreenshot: (String screenshotName, List<int> screenshotBytes, [Map<String, Object?>? args]) async {
final File image = File('$screenshotName.png');
image.writeAsBytesSync(screenshotBytes);
// Return false if the screenshot is invalid.