Index: lib/src/chain.dart |
diff --git a/lib/src/chain.dart b/lib/src/chain.dart |
index c282387b8d5fa0a9fb405160e30afe79d16e1265..b6f36d20efa9c4c23fade59d8ffa8f366837993d 100644 |
--- a/lib/src/chain.dart |
+++ b/lib/src/chain.dart |
@@ -193,7 +193,7 @@ class Chain implements StackTrace { |
/// |
/// The trace version of a chain is just the concatenation of all the traces |
/// in the chain. |
- Trace toTrace() => new Trace(flatten(traces.map((trace) => trace.frames))); |
+ Trace toTrace() => new Trace(traces.expand((trace) => trace.frames)); |
String toString() { |
// Figure out the longest path so we know how much to pad. |