writeFileImports method

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

Writes specified imports to indent.

Implementation

@override
void writeFileImports(
  GObjectOptions generatorOptions,
  Root root,
  Indent indent, {
  required String dartPackageName,
}) {
  indent.newln();
  final String guardName = _getGuardName(generatorOptions.headerIncludePath);
  indent.writeln('#ifndef $guardName');
  indent.writeln('#define $guardName');

  indent.newln();
  indent.writeln('#include <flutter_linux/flutter_linux.h>');
}