TypeDeclaration class Null safety

Type annotation introspection information for DeclarationMacros.

Implemented types
Implementers
Available Extensions

Constructors

TypeDeclaration()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
isAbstract bool
read-only, inherited
isExternal bool
read-only, inherited
isNullable bool
Whether or not the type reference is explicitly nullable (contains a trailing ?)
read-only, inherited
name String
The name of the type as it exists in the type annotation.
read-only, inherited
reference Code
Emits a piece of code that concretely refers to the same type that is referred to by this, regardless of where in the program it is placed. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scope Scope
The scope in which the type reference appeared in the program.
read-only, inherited
typeArguments Iterable<TypeDeclaration>
The type arguments, if applicable.
read-only, override
typeParameters Iterable<TypeParameterDeclaration>
read-only

Methods

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

Operators

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