Index: lib/src/command/serve.dart |
diff --git a/lib/src/command/serve.dart b/lib/src/command/serve.dart |
index 1094b491669e5033d00a9c92ed3f1a1f9da750f5..9052d7c3ba07e66ee5e49ad679122144a4a7c5bc 100644 |
--- a/lib/src/command/serve.dart |
+++ b/lib/src/command/serve.dart |
@@ -86,7 +86,8 @@ class ServeCommand extends BarbackCommand { |
var watcherType = argResults['force-poll'] ? |
WatcherType.POLLING : WatcherType.AUTO; |
- var environmentConstants = new Map.fromIterable(argResults["define"], |
+ var environmentConstants = new Map<String, String>.fromIterable( |
+ argResults["define"], |
key: (pair) => pair.split("=").first, |
value: (pair) => pair.split("=").last); |