Index: pkg/stack_trace/lib/src/trace.dart |
diff --git a/pkg/stack_trace/lib/src/trace.dart b/pkg/stack_trace/lib/src/trace.dart |
index bed1d5d89c799419d156dabe75835ffc34572a9a..33b2dd42262fad813a1e3811f3b0b147e5a91311 100644 |
--- a/pkg/stack_trace/lib/src/trace.dart |
+++ b/pkg/stack_trace/lib/src/trace.dart |
@@ -5,7 +5,7 @@ |
library trace; |
import 'dart:uri'; |
-import 'dart:math'; |
+import 'dart:math' as math; |
import 'frame.dart'; |
@@ -117,7 +117,7 @@ class Trace implements StackTrace { |
if (frames.length == '') return ''; |
// Figure out the longest path so we know how much to pad. |
- var longest = frames.map((frame) => frame.location.length).reduce(max); |
+ var longest = frames.map((frame) => frame.location.length).reduce(math.max); |
// Print out the stack trace nicely formatted. |
return frames.map((frame) { |