minus property Null safety

NormalOperation minus
final

Implementation

static final NormalOperation minus = NormalOperation.floatOnly(
    floatCalc: (Model m) {
      _scalarOrMatrix(m,
          scalar: (x, y) => y - x,
          matrix: (m, x, y, r) {
            _addOrSubtractMatricesXY((x, y) => y - x, m, x, y, r);
          });
    },
    complexCalc: (Model m) {
      if (m.x.asMatrix != null || m.y.asMatrix != null) {
        minus.floatCalc!(m);
      } else {
        m.popSetResultXC = m.yC - m.xC;
      }
    },
    name: '-');