clx method Null safety

void clx()

Implementation

void clx() {
  if (isComplexMode) {
    final tmp = xImaginary;
    x = Value.zero;
    xImaginary = tmp;
  } else {
    x = Value.zero;
  }
  _clxDone = true;
}