diff --git a/packages/flutter_tools/lib/src/commands/emulators.dart b/packages/flutter_tools/lib/src/commands/emulators.dart index be19c3419ba..49097486f6e 100644 --- a/packages/flutter_tools/lib/src/commands/emulators.dart +++ b/packages/flutter_tools/lib/src/commands/emulators.dart @@ -32,8 +32,9 @@ class EmulatorsCommand extends FlutterCommand { if (doctor.workflows.every((Workflow w) => !w.canListEmulators)) { throwToolExit( 'Unable to find any emulator sources. Please ensure you have some\n' - 'Android AVD images ' + (platform.isMacOS ? 'or an iOS Simulator ' : '') - + 'available.', + 'Android AVD images ' + + (platform.isMacOS ? 'or an iOS Simulator ' : '') + + 'available.', exitCode: 1); } @@ -65,8 +66,7 @@ class EmulatorsCommand extends FlutterCommand { } Future _listEmulators(String searchText) async { - final List emulators = - searchText == null + final List emulators = searchText == null ? await emulatorManager.getAllAvailableEmulators() : await emulatorManager.getEmulatorsMatching(searchText);