writeGeneralUtilities method
void
writeGeneralUtilities(
- DartOptions 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(
DartOptions generatorOptions,
Root root,
Indent indent, {
required String dartPackageName,
}) {
if (root.containsHostApi || root.containsProxyApi) {
_writeCreateConnectionError(indent);
}
if (root.containsFlutterApi ||
root.containsProxyApi ||
generatorOptions.testOutPath != null) {
_writeWrapResponse(generatorOptions, root, indent);
}
}