Commit 0fbb76a3 authored by Devon Carew's avatar Devon Carew

Merge pull request #2667 from devoncarew/add_more_types

add more type annotations
parents e77674c6 d44a70bc
...@@ -15,7 +15,7 @@ Process daemon; ...@@ -15,7 +15,7 @@ Process daemon;
// stopAll: stop any running app // stopAll: stop any running app
// devices: list devices // devices: list devices
Future main() async { Future<Null> main() async {
daemon = await Process.start('flutter', ['daemon']); daemon = await Process.start('flutter', ['daemon']);
print('daemon process started, pid: ${daemon.pid}'); print('daemon process started, pid: ${daemon.pid}');
...@@ -23,7 +23,7 @@ Future main() async { ...@@ -23,7 +23,7 @@ Future main() async {
.transform(UTF8.decoder) .transform(UTF8.decoder)
.transform(const LineSplitter()) .transform(const LineSplitter())
.listen((String line) => print('<== $line')); .listen((String line) => print('<== $line'));
daemon.stderr.listen((data) => stderr.add(data)); daemon.stderr.listen((dynamic data) => stderr.add(data));
stdout.write('> '); stdout.write('> ');
stdin.transform(UTF8.decoder).transform(const LineSplitter()).listen((String line) { stdin.transform(UTF8.decoder).transform(const LineSplitter()).listen((String line) {
...@@ -51,7 +51,7 @@ Future main() async { ...@@ -51,7 +51,7 @@ Future main() async {
int id = 0; int id = 0;
void _send(Map map) { void _send(Map<String, dynamic> map) {
map['id'] = id++; map['id'] = id++;
String str = '[${JSON.encode(map)}]'; String str = '[${JSON.encode(map)}]';
daemon.stdin.writeln(str); daemon.stdin.writeln(str);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment