Index: utils/tests/pub/command_line_config.dart |
diff --git a/utils/tests/pub/command_line_config.dart b/utils/tests/pub/command_line_config.dart |
index f05f93122974afe48b84573cb24694878a86cada..1efd7d1d2b3450a41fdf883ddf6fa59d96cd80c4 100644 |
--- a/utils/tests/pub/command_line_config.dart |
+++ b/utils/tests/pub/command_line_config.dart |
@@ -5,6 +5,7 @@ |
library command_line_config; |
import 'dart:io'; |
+import 'dart:math'; |
import 'package:pathos/path.dart' as path; |
import 'package:unittest/unittest.dart'; |
@@ -91,7 +92,7 @@ class CommandLineConfiguration extends Configuration { |
if (stack.length == 0) return; |
// Figure out the longest path so we know how much to pad. |
- int longest = stack.map((frame) => frame.location.length).max(); |
+ int longest = stack.map((frame) => frame.location.length).reduce(max); |
// Print out the stack trace nicely formatted. |
for (var frame in stack) { |