operator == method

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

Compare two complex numbers for equality (real and imaginary).

Implementation

@override
bool operator ==(Object other) =>
    other is Complex && _re == other._re && _im == other._im;