Compare two elements for being equal.
This should be a proper equality relation.
@override bool equals(Type e1, Type e2) { var t1 = TypeInfo.from(e1); var t2 = TypeInfo.from(e2); return t1 == t2; }