isEquivalentTo method

bool isEquivalentTo (DartType dest)

Indicates whether this represents a type that is equivalent to dest.

This is different from operator==. Consider for example:

typedef void F<T>(); // T not used!

operator== would consider F and F to be different types; isEquivalentTo considers them to be equivalent.


bool isEquivalentTo(DartType dest);