generateForFunction abstract method
dynamic
generateForFunction(
- BuildStep buildStep,
- FunctionElement element,
- ElementAnnotation annotation
Generates code for an annotated function element.
This is called for each function in the library that has the annotation this generator is targeting.
@param buildStep The build step providing context for generation @param element The annotated function element @param annotation The annotation instance on the function @return Generated code as a string, or null if nothing to generate
Implementation
dynamic generateForFunction(
BuildStep buildStep,
FunctionElement element,
ElementAnnotation annotation,
);