writeApis method
void
writeApis(
- JavaOptions generatorOptions,
- Root root,
- Indent indent, {
- required String dartPackageName,
override
Writes all apis to indent
.
Can be overridden to add extra code before/after classes.
Implementation
@override
void writeApis(
JavaOptions generatorOptions,
Root root,
Indent indent, {
required String dartPackageName,
}) {
if (root.apis.any((Api api) =>
api is AstHostApi &&
api.methods.any((Method it) => it.isAsynchronous) ||
api is AstFlutterApi)) {
indent.newln();
_writeResultInterfaces(indent);
}
super.writeApis(generatorOptions, root, indent,
dartPackageName: dartPackageName);
}