FactoryGenerator class

Constructors

FactoryGenerator()
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
typeChecker → TypeChecker
no setterinherited

Methods

checkOptionalRecursive(ParameterElement parameter) bool
checkValueProviderAssigned(ClassElement factoryElement) bool
generate(LibraryReader library, BuildStep buildStep) FutureOr<String>
Generates Dart code for an input Dart library.
inherited
generateForAnnotatedElement(Element factoryElement, ConstantReader annotation, BuildStep buildStep) Stream<String>
Implement to return source code to generate for element.
getDefaultValueCode(ParameterElement parameter) String?
getDocumentation(ParameterElement parameter, BuildStep buildStep) Future<String?>
getProviderCallCode(DartType type, {String contextGetter = 'context', String keyGetter = 'key'}) String?
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