chsX method Null safety

  1. @override
void chsX()
override

Negate the value in x like the CHS key does. The behavior varies according to the current sign mode. In complex mode, it leaves the imaginary part alone, and does not change the CLX status.

Implementation

@override
void chsX() {
  final mi = x.asMatrix;
  if (mi == null) {
    super.chsX();
  } else {
    matrices[mi].chsElements();
    needsSave = true;
  }
}