A TypeMirror reflects a Dart language class, typedef, function type or type variable.

Implements
Implemented by

Properties

hashCode int

Get a hash code for this object.

read-only, inherited
hasReflectedType bool

Returns true if this mirror reflects dynamic, a non-generic class or typedef, or an instantiated generic class or typedef in the current isolate. Otherwise, returns false.

read-only
isOriginalDeclaration bool

Is this the original declaration of this type?

read-only
isPrivate bool

Returns true if this declaration is considered private according to the Dart language specification. Always returns false if this declaration is a library. Otherwise return false.

read-only, inherited
isTopLevel bool

Is this declaration top-level?

read-only, inherited
location SourceLocation

The source location of this Dart language entity, or null if the entity is synthetic.

read-only, inherited
metadata List<InstanceMirror>

A list of the metadata associated with this declaration.

read-only, inherited
originalDeclaration TypeMirror

A mirror on the original declaration of this type.

read-only
owner DeclarationMirror

A mirror on the owner of this Dart language entity. This is the declaration immediately surrounding the reflectee.

read-only, inherited
qualifiedName Symbol

The fully-qualified name for this Dart language entity.

read-only, inherited
reflectedType Type

If hasReflectedType returns true, returns the corresponding Type. Otherwise, an UnsupportedError is thrown.

read-only
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited
simpleName Symbol

The simple name for this Dart language entity.

read-only, inherited
typeArguments List<TypeMirror>

An immutable list with mirrors for all type arguments for this type.

read-only
typeVariables List<TypeVariableMirror>

An immutable list with mirrors for all type variables for this type.

read-only

Constructors

TypeMirror()

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

isAssignableTo(TypeMirror other) bool

Checks the assignability relationship, denoted by <=> in the language specification. This is the type relationship tested on assignment in checked mode.

isSubtypeOf(TypeMirror other) bool

Checks the subtype relationship, denoted by <: in the language specification. This is the type relationship used in is test checks.

noSuchMethod(Invocation invocation) → dynamic

noSuchMethod is invoked when users invoke a non-existent method on an object. The name of the method and the arguments of the invocation are passed to noSuchMethod in an Invocation. If noSuchMethod returns a value, that value becomes the result of the original invocation.

inherited
toString() String

Returns a string representation of this object.

inherited