operator == method

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

Checks whether two complex numbers are equal.

Implementation

@override
bool operator ==(Object other) => other is complex && real == other.real && imag == other.imag;