setupComplex method Null safety

  1. @protected
void setupComplex(
  1. List<Value>? imaginaryStack
)

Implementation

@protected
void setupComplex(List<Value>? imaginaryStack) {
  final nowComplex = imaginaryStack != null;
  assert(isComplexMode != nowComplex);
  displayMode.setComplexMode(this, nowComplex);
  _imaginaryStack = imaginaryStack;
  if (nowComplex) {
    _lastXImaginary = Value.zero;
  } else {
    _lastXImaginary = null;
  }
}