UnresolvedAnnotationException class Null safety

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. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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