InjectGenerator class

InjectGenerator generates a mixin for a class marked with @injectable() and injects all fields annotated with @inject(), using CherryPick DI.

For Future


InjectGenerator генерирует миксин для класса с аннотацией @injectable() и внедряет все поля, помеченные @inject(), используя DI-фреймворк CherryPick.

Для Future

Constructors

InjectGenerator.new()
const

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
finalinherited
typeChecker → TypeChecker
no setterinherited

Methods

generate(LibraryReader library, BuildStep buildStep) FutureOr<String>
Generates Dart code for an input Dart library.
inherited
generateForAnnotatedElement(Element element, ConstantReader annotation, BuildStep buildStep) FutureOr<String>
The main entry point for code generation.
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