printFrames method
Implementation
List<String> printFrames() {
List<CallFrame> frames = callFrames;
int width = frames.fold(0, (int val, CallFrame frame) {
return max(val, frame.functionName.length);
});
return frames.map((CallFrame frame) {
var name = '${frame.functionName}()'.padRight(width + 2);
return '$name ${frame.url} ${frame.lineNumber}:${frame.columnNumber}';
}).toList();
}