printChangelog function

String printChangelog(
  1. Changelog changelog, {
  2. bool keepEmptyUnreleased = false,
})

Converts the changelog to a markdown string.

  • keepEmptyUnreleased preserves the "Unreleased" section even when it's empty

Implementation

String printChangelog(Changelog changelog,
        {bool keepEmptyUnreleased = false}) =>
    render(_changelog(changelog, keepEmptyUnreleased: keepEmptyUnreleased),
        flavor: flavors.changelog);