emit method

  1. @override
void emit(
  1. StringBuffer buffer, {
  2. required InspectionCache cache,
  3. required AppType appType,
})
override

Emits a Dart source for this entry during interface generation.

Implementation

@override
void emit(
  StringBuffer buffer, {
  required InspectionCache cache,
  required AppType appType,
}) {
  buffer.writeln("/// ## $name");
  emitDoc(buffer);
  emitSource(buffer);
  buffer.writeln(
    "typedef $sanitizedName = ${_getTypeString(this, cache: cache)};",
  );
}