writeEnums method
void
writeEnums(})
Writes all enums to indent
.
Can be overridden to add extra code before/after enums.
Implementation
void writeEnums(
T generatorOptions,
Root root,
Indent indent, {
required String dartPackageName,
}) {
for (final Enum anEnum in root.enums) {
writeEnum(
generatorOptions,
root,
indent,
anEnum,
dartPackageName: dartPackageName,
);
}
}