add method Null safety

void add(
  1. Template markdownPage
)

adds a Template while verifying that each Template has a unique Template.destinationFilePath to prevent overriding generated files

Implementation

void add(Template markdownPage) {
  verifyUniqueDestinationPath(markdownPage);
  children.add(markdownPage);
}