abs property Null safety

NormalOperation abs
final

Implementation

static final NormalOperation abs = NormalOperation.differentFloatAndInt(
    floatCalc: (Model m) {
      m.resultXF = m.xF.abs();
    },
    complexCalc: (Model m) {
      m.resultXF = m.xC.r; // Sets complex part to zero
    },
    intCalc: (Model m) => m.resultXI = m.xI.abs(),
    name: 'ABS');