isSubtypeOf abstract method

bool isSubtypeOf(
  1. TypeMirror other
)

Checks the subtype relationship, denoted by <: in the language specification.

This is the type relationship used in is test checks.

Note that this method can only be invoked successfully if all the supertypes of the receiver are covered by the reflector, and a TypeRelationsCapability has been requested.

Required capabilities: isSubtypeOf requires a TypeRelationsCapability, and it requires that all the types visited in order to determine the result must be covered.

Implementation

bool isSubtypeOf(TypeMirror other);