UnresolvedAnnotationException class

Exception thrown when TypeChecker fails to resolve a metadata annotation.

Methods such as TypeChecker.firstAnnotationOf may throw this exception when one or more annotations are not resolvable. This is usually a sign that something was misspelled, an import is missing, or a dependency was not defined (for build systems such as Bazel).

Implemented types

Properties

annotatedElement → Element
Element that was annotated with something we could not resolve.
final
annotationSource → SourceSpan?
Source span of the annotation that was not resolved.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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