TypedefMirror class abstract

A TypedefMirror represents a typedef in a Dart language program.

Implemented types

Constructors

TypedefMirror()

Properties

hashCode int
The hash code for this object.
no setterinherited
hasReflectedType bool
Returns true if this mirror reflects dynamic, a non-generic class or typedef, or an instantiated generic class or typedef with support in the execution mode. Otherwise, returns false.
no setterinherited
isNonNullable bool
Returns true iff this type mirror represents a non-nullable type.
no setterinherited
isNullable bool
Returns true iff this type mirror represents a nullable type.
no setterinherited
isOriginalDeclaration bool
Is this the original declaration of this type?
no setterinherited
isPotentiallyNonNullable bool
Returns true iff this type mirror represents a potentially non-nullable type.
no setterinherited
isPotentiallyNullable bool
Returns true iff this type mirror represents a potentially nullable type.
no setterinherited
isPrivate bool
Whether this declaration is library private.
no setterinherited
isTopLevel bool
Whether this declaration is top-level.
no setterinherited
location SourceLocation
The source location of this Dart language entity, or null if the entity is synthetic.
no setterinherited
metadata List<Object>
A list of the metadata associated with this declaration.
no setterinherited
originalDeclaration TypeMirror
A mirror on the original declaration of this type.
no setterinherited
owner DeclarationMirror?
A mirror on the owner of this Dart language entity.
no setterinherited
qualifiedName String
The fully-qualified name for this Dart language entity.
no setterinherited
referent FunctionTypeMirror
The defining type for this typedef.
no setter
reflectedType Type
If hasReflectedType returns true, returns the corresponding Type. Otherwise, an UnsupportedError is thrown.
no setterinherited
reflectedTypeArguments List<Type>
An immutable list with Type values for the actual type arguments of this type.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
simpleName String
The simple name for this Dart language entity.
no setterinherited
typeArguments List<TypeMirror>
An immutable list with mirrors for all type arguments for this type.
no setterinherited
typeVariables List<TypeVariableMirror>
An immutable list with mirrors for all type variables for this type.
no setterinherited

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.
inherited
isSubtypeOf(TypeMirror other) bool
Checks the subtype relationship, denoted by <: in the language specification.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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