equals method

  1. @override
bool equals(
  1. Type e1,
  2. Type e2
)

Compare two elements for being equal.

This should be a proper equality relation.

Implementation

@override
bool equals(Type e1, Type e2) {
  var t1 = TypeInfo.from(e1);
  var t2 = TypeInfo.from(e2);
  return t1 == t2;
}