isAssignableTo abstract method Null safety

bool isAssignableTo(
  1. TypeMirror other

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

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

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


bool isAssignableTo(TypeMirror other);