operator == abstract method

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

Test for equality with another object.

If both the real and imaginary parts of two complex numbers are exactly the same, and neither is double.nan, the two Complex objects are considered to be equal.

  • All NaN values are considered to be equal, i.e, if either (or both) real and imaginary parts of the complex number are equal to double.nan, the complex number is equal to NaN.
  • Instances constructed with different representations of zero (i.e. either "0" or "-0") are not considered to be equal.

Implementation

@override
bool operator ==(Object other);