writeDataClasses method
void
writeDataClasses(
- ObjcOptions generatorOptions,
- Root root,
- Indent indent, {
- 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,
}) {
indent.newln();
for (final Class klass in root.classes) {
indent.writeln(
'@class ${_className(generatorOptions.prefix, klass.name)};');
}
indent.newln();
super.writeDataClasses(
generatorOptions,
root,
indent,
dartPackageName: dartPackageName,
);
}