export method
Export all Sessions as a single Traindown string. Good for dumping and sharing.
For details on the optional parameters, see Formatter.
Implementation
String export(
{String indenter = ' ',
String linebreaker = '\r\n',
String spacer = ' '}) {
Formatter formatter =
Formatter(indenter: indenter, linebreaker: linebreaker, spacer: spacer);
StringBuffer buffer = StringBuffer();
sessions.forEach((s) => buffer
.write('${formatter.format(s.tokens)}${formatter.linebreaker * 2}'));
return buffer.toString().trim();
}