writeGeneralUtilities method
void
writeGeneralUtilities(
- JavaOptions generatorOptions,
- Root root,
- Indent indent, {
- required String dartPackageName,
override
Writes any necessary helper utilities to indent
if needed.
This method is not required, and does not need to be overridden.
Implementation
@override
void writeGeneralUtilities(
JavaOptions generatorOptions,
Root root,
Indent indent, {
required String dartPackageName,
}) {
indent.newln();
_writeErrorClass(indent);
if (root.containsHostApi) {
indent.newln();
_writeWrapError(indent);
}
if (root.containsFlutterApi) {
indent.newln();
_writeCreateConnectionError(indent);
}
if (root.classes.isNotEmpty) {
_writeCanIgnoreReturnValueAnnotation(generatorOptions, root, indent);
}
}