operator == method

  1. @override
bool operator ==(
  1. 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;
}