Commit d44a70bc authored by Devon Carew's avatar Devon Carew

add more type annotations

parent 9bc4deed
......@@ -15,7 +15,7 @@ Process daemon;
// stopAll: stop any running app
// devices: list devices
Future main() async {
Future<Null> main() async {
daemon = await Process.start('flutter', ['daemon']);
print('daemon process started, pid: ${daemon.pid}');
......@@ -23,7 +23,7 @@ Future main() async {
.transform(UTF8.decoder)
.transform(const LineSplitter())
.listen((String line) => print('<== $line'));
daemon.stderr.listen((data) => stderr.add(data));
daemon.stderr.listen((dynamic data) => stderr.add(data));
stdout.write('> ');
stdin.transform(UTF8.decoder).transform(const LineSplitter()).listen((String line) {
......@@ -51,7 +51,7 @@ Future main() async {
int id = 0;
void _send(Map map) {
void _send(Map<String, dynamic> map) {
map['id'] = id++;
String str = '[${JSON.encode(map)}]';
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