RetrofitLeanGenerator class
Lean Builder generator for Retrofit.
This generator provides lean_builder support for retrofit_generator, allowing faster incremental builds with lean_builder.
Note: This is an experimental feature. For production use, we recommend using the traditional build_runner approach until lean_builder support is fully stable.
This generator is automatically discovered by lean_builder through the @LeanGenerator.shared() annotation, which marks it as a shared part builder (similar to build_runner's shared part builders).
- Annotations
-
- @LeanGenerator.shared()
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- throwOnUnresolved → bool
-
Whether to throw an exception if no annotated elements are found.
finalinherited
Methods
-
buildTypeChecker(
Resolver resolver) → TypeChecker -
Creates a TypeChecker for this generator's annotation type.
inherited
-
generate(
LibraryElement library, BuildStep buildStep) → FutureOr< String> -
Generates Dart code for an input Dart library.
inherited
-
generateForAnnotatedElement(
BuildStep buildStep, Element element, ElementAnnotation annotation) → dynamic -
Generates code for a single annotated element.
inherited
-
generateForClass(
BuildStep buildStep, ClassElement classElement, ElementAnnotation annotation) → FutureOr< String?> - Generates code for an annotated class element.
-
getTypeChecker(
BuildStep buildStep) → TypeChecker -
Gets a TypeChecker for this generator's annotation type.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited