@@ -34,31 +34,33 @@ void main(List<String> args) async {
34
34
35
35
Process appProcess;
36
36
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
+ ]);
39
41
final sawHelloWorld = Completer ();
40
42
appProcess.stdout
41
43
.transform (utf8.decoder)
42
44
.transform (const LineSplitter ())
43
45
.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
+ });
56
58
appProcess.stderr
57
59
.transform (utf8.decoder)
58
60
.transform (const LineSplitter ())
59
61
.listen ((line) {
60
- stderr.writeln ('APP -> $line ' );
61
- });
62
+ stderr.writeln ('APP -> $line ' );
63
+ });
62
64
63
65
final vmService = await vmServiceCompleter.future;
64
66
await sawHelloWorld.future;
0 commit comments