operator == method
- Object other
override
Returns true if both the real and imaginary parts are equal.
Implementation
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
return other is Complex && _real == other._real && _imag == other._imag;
}