createMarkdownPage method Null safety

MarkdownTemplate createMarkdownPage(
  1. ParentNode parent,
  2. String sourceFilePath
)

Implementation

MarkdownTemplate createMarkdownPage(ParentNode parent, String sourceFilePath) {
  return MarkdownTemplate(
    parent: parent,
    sourcePath: sourceFilePath,
    destinationFilePath: createDestinationPath(sourceFilePath),
    destinationWebUri: createDestinationWebUri(sourceFilePath),
  );
}