writeDataClasses method
void
writeDataClasses(
- CppOptions 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(
CppOptions generatorOptions,
Root root,
Indent indent, {
required String dartPackageName,
}) {
indent.newln();
super.writeDataClasses(
generatorOptions,
root,
indent,
dartPackageName: dartPackageName,
);
if (root.requiresOverflowClass) {
writeDataClass(
generatorOptions,
root,
indent,
_overflowClass,
dartPackageName: dartPackageName,
isOverflowClass: true,
);
}
}