TypeVariableMirror class Null safety
A TypeVariableMirror represents a type parameter of a generic type.
- Inheritance
-
- Object
- TypeMirror
- TypeVariableMirror
Constructors
Properties
- hashCode → int
-
Override requested by linter.
read-only, override
- 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.
read-only, inherited
- isNonNullable → bool
-
Returns true iff this type mirror represents a non-nullable type.
read-only, inherited
- isNullable → bool
-
Returns true iff this type mirror represents a nullable type.
read-only, inherited
- isOriginalDeclaration → bool
-
Is this the original declaration of this type?
read-only, inherited
- isPotentiallyNonNullable → bool
-
Returns true iff this type mirror represents a potentially non-nullable
type.
read-only, inherited
- isPotentiallyNullable → bool
-
Returns true iff this type mirror represents a potentially nullable type.
read-only, inherited
- isPrivate → bool
-
Whether this declaration is library private.
read-only, inherited
- isStatic → bool
-
Is the reflectee static?
For the purposes of the mirrors library, type variables are considered
non-static.
read-only
- isTopLevel → bool
-
Whether this declaration is 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<
Object> -
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, inherited
- owner → DeclarationMirror?
-
A mirror on the owner of this Dart language entity.
read-only, inherited
- qualifiedName → String
-
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, inherited
-
reflectedTypeArguments
→ List<
Type> -
An immutable list with
Type
values for the actual type arguments of this type.read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- simpleName → String
-
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, inherited
-
typeVariables
→ List<
TypeVariableMirror> -
An immutable list with mirrors for all type variables for this type.
read-only, inherited
- upperBound → TypeMirror
-
A mirror on the type that is the upper bound of this type variable.
read-only
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 non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
Whether
other
is a TypeVariableMirror on the same type variable as this mirror.override