AnnotationArgument class

Mixed-in types

Constructors

AnnotationArgument({required String source, required Element? element, required bool isInjectable, required ServerType type, required bool isRequired, required String parameterName})
AnnotationArgument.fromExpression(Expression expression, {String? annotationContext, String? knownNamedParameter, bool? knownIsRequired})
factory
AnnotationArgument.fromFieldValue(String fieldName, DartObject value, FieldElement fieldElement)
Creates an AnnotationArgument from a field value read from a const instance via DartObject.getField. Used for initializer list values (fields assigned after : in constructors like const Auth.admin() : requireAdmin = true).
factory

Properties

element → Element?
final
extractors → List<ExtractImport?>
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
imports → List<ServerImports?>
no setteroverride
isInjectable → bool
Whether the argument should be injected from DI
final
isRequired → bool
final
parameterName → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → String
final
type → ServerType
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
packageImports() → Iterable<String>
inherited
pathImports() → Iterable<String>
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited