[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:
parent
0c10e1ca54
commit
6b70dc18f5
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user