writeFilePrologue method

  1. @override
void writeFilePrologue(
  1. SwiftOptions generatorOptions,
  2. Root root,
  3. Indent indent, {
  4. required String dartPackageName,
})
override

Adds specified headers to indent.

Implementation

@override
void writeFilePrologue(
  SwiftOptions generatorOptions,
  Root root,
  Indent indent, {
  required String dartPackageName,
}) {
  if (generatorOptions.copyrightHeader != null) {
    addLines(indent, generatorOptions.copyrightHeader!, linePrefix: '// ');
  }
  indent.writeln('// ${getGeneratedCodeWarning()}');
  indent.writeln('// $seeAlsoWarning');
  indent.newln();
}