Refactor DeviceManager.findTargetDevices() and FlutterCommand.findAllTargetDevices(), and add a flag to not show prompt. (#112223)

This commit is contained in:
Lau Ching Jun
2022-09-23 17:10:35 -04:00
committed by GitHub
parent eefd5d4c12
commit 2a73ce9b50
12 changed files with 477 additions and 393 deletions

View File

@@ -241,7 +241,7 @@ class FakeDeviceManager implements DeviceManager {
}
@override
Future<List<Device>> findTargetDevices(FlutterProject? flutterProject, { Duration? timeout }) async {
Future<List<Device>> findTargetDevices(FlutterProject? flutterProject, { Duration? timeout, bool promptUserToChooseDevice = true }) async {
return devices;
}
}