toMarkdown method
Returns a Markdown string of changes
Implementation
String toMarkdown() {
final List<String> parts = [
_versionHeadline(version.toString(), date),
_changeSection('Bug Fixes', sections.bugFixes),
_changeSection('Features', sections.features),
_changeSection('Performance Improvements', sections.performance),
_changeSection('BREAKING CHANGES', sections.breakingChanges),
].whereType<String>().toList();
return '${parts.join('\n\n').trim()}\n';
}