xSquared property Null safety

NormalOperation xSquared
final

Implementation

static final NormalOperation xSquared = NormalOperationShiftedArg.floatOnly(
    argShift: Operations.gShift,
    programListingArgName: 'g A',
    floatCalc: (Model m) {
      double x = m.xF;
      m.resultXF = x * x;
    },
    complexCalc: (Model m) {
      final v = m.xC;
      m.resultXC = v * v;
    },
    name: 'x^2');