addSection method

void addSection(
  1. ChangelogSection section
)

Implementation

void addSection(ChangelogSection section) {
  if (sections.containsKey(section.sectionName)) {
    var sec = sections[section.sectionName]!;
    sec.changes.addAll(section.changes);
  } else {
    sections[section.sectionName] = section;
  }
}