equals method

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

Compare two elements for being equal.

This should be a proper equality relation.

Implementation

@override
bool equals(e1, e2) => isIdentity
    ? diffEquality.areIdentical(e1, e2)
    : diffEquality.areEqual(e1, e2);