in tool/common.dart [24:34]
Map<String, String> calculateFlutterVersion() {
final String flutterPath = path.join(flutterSdkPath, 'bin/flutter');
final ProcessResult result =
Process.runSync(flutterPath, <String>['--version', '--machine']);
if (result.exitCode != 0) {
throw 'Error from flutter --version';
}
return (jsonDecode(result.stdout.toString().trim()) as Map<String, dynamic>)
.cast<String, String>();
}