writeDataClasses method

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

Writes all data classes to indent.

Can be overridden to add extra code before/after apis.

Implementation

@override
void writeDataClasses(
  ObjcOptions generatorOptions,
  Root root,
  Indent indent, {
  required String dartPackageName,
}) {
  for (final Class classDefinition in root.classes) {
    _writeObjcSourceDataClassExtension(
        generatorOptions, indent, classDefinition);
  }
  indent.newln();
  super.writeDataClasses(
    generatorOptions,
    root,
    indent,
    dartPackageName: dartPackageName,
  );
}