FunctionMetadata class abstract

Base class for function-like metadata (methods, constructors).

Inheritance

Constructors

FunctionMetadata({required TypeMetadata returnType, required String name, List<ParameterMetadata>? parameters, List annotations = const []})

Properties

annotations List
List of annotations applied to this element.
finalinherited
classMetadata ClassMetadata
Back-reference to the class that contains this function.
latefinal
hashCode int
The hash code for this object.
no setterinherited
hasMappedParameters bool
Checks if parameters were mapped for this function.
no setter
name String
The name of this function.
final
parameters List<ParameterMetadata>?
Parameters of this function.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
typeMetadata TypeMetadata
Type information for this element.
finalinherited

Methods

allAnnotationsOf<A>() List<A>
Returns all annotations of type A.
inherited
firstAnnotationOf<A>() → A?
Returns the first annotation of type A, if it exists.
inherited
hasAnnotation<A>() bool
Checks if this element has an annotation of type A.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parametersAnnotatedWith<A>() List<ParameterMetadata>
Returns parameters annotated with A.
toString() String
A string representation of this object.
inherited

Operators

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