writeGeneralUtilities method
void
writeGeneralUtilities(
- CppOptions 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(
CppOptions generatorOptions,
Root root,
Indent indent, {
required String dartPackageName,
}) {
_writeFlutterError(indent);
if (root.containsHostApi) {
_writeErrorOr(
indent,
friends: root.apis
.where((Api api) => api is AstFlutterApi || api is AstHostApi)
.map((Api api) => api.name),
);
}
}