Future flutterRun()

in tool/common.dart [36:51]


Future<void> flutterRun(String script) async {
  final Process proc = await Process.start(
      'flutter', <String>['run', '-d', 'flutter-tester', '-t', script]);
  proc.stdout
      .transform(utf8.decoder)
      .transform(const LineSplitter())
      .listen(stdout.writeln);
  proc.stderr
      .transform(utf8.decoder)
      .transform(const LineSplitter())
      .listen(stderr.writeln);
  final int exitCode = await proc.exitCode;
  if (exitCode != 0) {
    throw 'Process exited with code $exitCode';
  }
}