TypeReference class Null safety

Type annotation introspection information for TypeMacros.

Implementers
Available Extensions

Constructors

TypeReference()

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
isNullable → bool
Whether or not the type reference is explicitly nullable (contains a trailing ?)
read-only
name → String
The name of the type as it exists in the type annotation.
read-only
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
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
typeArguments → Iterable<TypeReference>
The type arguments, if applicable.
read-only

Methods

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