operator == method
Equality.
- If
Tis Iterable usesIterableEquality.equals.
Implementation
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (other is! Pair) return false;
var a = this.a;
if (a is Iterable) {
var b = this.b as Iterable;
return _iterableEquality.equals(a, other.a) &&
_iterableEquality.equals(b, other.b);
} else {
return a == other.a && b == other.b;
}
}