operator + method

  1. @override
Complex<num, num> operator +(
  1. Complex<num, num> other
)

Implementation

@override
Complex operator +(Complex other) {
  final iTotal = real + other.real;
  final jTotal = imaginary + other.imaginary;
  return Complex(iTotal, jTotal);
}