toTrace method Null safety

Trace toTrace()

Converts this to a Trace.

The trace version of a chain is just the concatenation of all the traces in the chain.

Implementation

Trace toTrace() => Trace(traces.expand((trace) => trace.frames));