EnvysticGenerator class

Generate code for classes annotated with the @Envystic().

Will throw an InvalidGenerationSourceError if the annotated element is not a classElement.

Constructors

EnvysticGenerator({BuilderOptions? options})

Properties

elementsKeys Map<String, KeyInfo>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
options → BuilderOptions?
final
optionsEncryptionKey String?
getter/setter pair
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.
generateForAnnotatedElement(Element element, ConstantReader annotation, BuildStep buildStep) FutureOr<String>
Implement to return source code to generate for element.
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