plus property Null safety
final
Implementation
static final NormalOperation plus = 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) {
plus.floatCalc!(m);
} else {
m.popSetResultXC = m.yC + m.xC;
}
},
name: '+');