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,
}) {
_writeObjcSourceHelperFunctions(indent,
hasHostApiMethods: root.apis.any((Api api) =>
api.location == ApiLocation.host && api.methods.isNotEmpty));
for (final Class klass in root.classes) {
_writeObjcSourceDataClassExtension(generatorOptions, indent, klass);
}
indent.newln();
super.writeDataClasses(
generatorOptions,
root,
indent,
dartPackageName: dartPackageName,
);
}