operator == abstract method
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 todouble.nan
, the complex number is equal toNaN
. - 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);