operator == method
Compares a Pair with another Object.
If other
is a Pair and it's hashCode is the same as this'
hashCode, the two are equal.
If other
is not a Pair, they are not equal.
Implementation
@override
bool operator ==(Object other) =>
other is Pair && (other._a == _a && other._b == _b);