@@ -34,31 +34,33 @@ void main(List<String> args) async {
3434
3535 Process appProcess;
3636 final vmServiceCompleter = Completer <VmService >();
37- appProcess = await Process .start (Platform .resolvedExecutable,
38- ['--enable-vm-service=0' , result.dillOutput! ]);
37+ appProcess = await Process .start (Platform .resolvedExecutable, [
38+ '--enable-vm-service=0' ,
39+ result.dillOutput! ,
40+ ]);
3941 final sawHelloWorld = Completer ();
4042 appProcess.stdout
4143 .transform (utf8.decoder)
4244 .transform (const LineSplitter ())
4345 .listen ((line) {
44- stdout.writeln ('APP -> $line ' );
45- if (line == 'hello/world' ) {
46- sawHelloWorld.complete ();
47- }
48- if (line.startsWith (
49- 'The Dart DevTools debugger and profiler is available at:' ,
50- )) {
51- final observatoryUri =
52- '${line .split (' ' ).last .replaceFirst ('http' , 'ws' )}ws' ;
53- vmServiceCompleter.complete (vmServiceConnectUri (observatoryUri));
54- }
55- });
46+ stdout.writeln ('APP -> $line ' );
47+ if (line == 'hello/world' ) {
48+ sawHelloWorld.complete ();
49+ }
50+ if (line.startsWith (
51+ 'The Dart DevTools debugger and profiler is available at:' ,
52+ )) {
53+ final observatoryUri =
54+ '${line .split (' ' ).last .replaceFirst ('http' , 'ws' )}ws' ;
55+ vmServiceCompleter.complete (vmServiceConnectUri (observatoryUri));
56+ }
57+ });
5658 appProcess.stderr
5759 .transform (utf8.decoder)
5860 .transform (const LineSplitter ())
5961 .listen ((line) {
60- stderr.writeln ('APP -> $line ' );
61- });
62+ stderr.writeln ('APP -> $line ' );
63+ });
6264
6365 final vmService = await vmServiceCompleter.future;
6466 await sawHelloWorld.future;
0 commit comments