operator - method
Returns the difference of this complex value and other
.
Implementation
Complex operator -(Object other) {
if (other is Complex) {
return Complex(a - other.a, b - other.b);
} else if (other is num) {
return Complex(a - other, b);
} else {
throw ArgumentError.value(other, 'other', 'Invalid type');
}
}