xImaginary property Null safety

Value xImaginary

Just the imaginary part of x

Implementation

Value get xImaginary => _imaginaryStack![0];
void xImaginary=(Value v)

Sets the imaginary part of X. This is only to be used after the real part is already set.

Implementation

set xImaginary(Value v) {
  if (identical(v, Value.fInfinity)) {
    floatOverflow = true;
    v = Value.fMaxValue;
  } else if (identical(v, Value.fNegativeInfinity)) {
    floatOverflow = true;
    v = Value.fMinValue;
  }
  _imaginaryStack![0] = v;
}