TypeMirror class

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

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

Implements:
Implementors

Constructors

TypeMirror ( )

Instance Properties

hasReflectedType bool
read-only
reflectedType Type
read-only
typeVariables List<TypeVariableMirror>
read-only
typeArguments List<TypeMirror>
read-only
isOriginalDeclaration bool
read-only
originalDeclaration TypeMirror
read-only
owner DeclarationMirror Inherited
read-only
location SourceLocation Inherited
read-only
isPrivate bool Inherited
read-only
simpleName Symbol Inherited
read-only
metadata List<InstanceMirror> Inherited
read-only
isTopLevel bool Inherited
read-only
qualifiedName Symbol Inherited
read-only

Instance Methods

isSubtypeOf ( TypeMirror other ) → bool
Checks the subtype relationship, denoted by <: in the language specification. This is the type relationship used in is test checks.
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.