[flutter_tools] make getBuildInfo async (#70320)

This commit is contained in:
Jonah Williams
2020-11-11 15:33:23 -08:00
committed by GitHub
parent 0f80116a63
commit 22ec357bc4
18 changed files with 45 additions and 46 deletions

View File

@@ -750,7 +750,7 @@ abstract class FlutterCommand extends Command<void> {
///
/// Throws a [ToolExit] if the current set of options is not compatible with
/// each other.
BuildInfo getBuildInfo({ BuildMode forcedBuildMode }) {
Future<BuildInfo> getBuildInfo({ BuildMode forcedBuildMode }) async {
final bool trackWidgetCreation = argParser.options.containsKey('track-widget-creation') &&
boolArg('track-widget-creation');