Fixes for Dart 2 failures in tests (#18371)

This commit is contained in:
Keerti Parthasarathy
2018-06-12 09:30:10 -07:00
committed by GitHub
parent b8b34def39
commit aecb7d9607
4 changed files with 5 additions and 5 deletions

View File

@@ -510,7 +510,7 @@ class AndroidDevice extends Device {
bool get supportsScreenshot => true;
@override
Future<Null> takeScreenshot(File outputFile) async {
Future<void> takeScreenshot(File outputFile) async {
const String remotePath = '/data/local/tmp/flutter_screenshot.png';
await runCheckedAsync(adbCommandForDevice(<String>['shell', 'screencap', '-p', remotePath]));
await runCheckedAsync(adbCommandForDevice(<String>['pull', remotePath, outputFile.path]));