operator == method

  1. @override
bool operator ==(
  1. dynamic other
)
override

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 ==(dynamic other) =>
    other is Pair && (other._a == _a && other._b == _b);