writeFilePrologue method
void
writeFilePrologue(
- ArkTSOptions generatorOptions,
- Root root,
- Indent indent, {
- required String dartPackageName,
override
Adds specified headers to indent
.
Implementation
@override
void writeFilePrologue(
ArkTSOptions generatorOptions, Root root, Indent indent,
{required String dartPackageName}) {
if (generatorOptions.copyrightHeader != null) {
indent.writeln('/*');
addLines(indent, generatorOptions.copyrightHeader!, linePrefix: '* ');
indent.writeln('*/');
}
}