receiveNegation method
Implementation
@override
DartBlockValueTreeAlgebraicNode receiveNegation() {
if (parent != null) {
parent!.replaceChild(
this,
DartBlockValueTreeAlgebraicOperatorNode.init(
DartBlockAlgebraicOperator.subtract,
null,
DartBlockValueTreeAlgebraicDynamicNode.init(value, null),
parent,
specificNodeKey: nodeKey,
),
);
return this;
} else {
return DartBlockValueTreeAlgebraicOperatorNode.init(
DartBlockAlgebraicOperator.subtract,
null,
DartBlockValueTreeAlgebraicDynamicNode.init(value, null),
null,
specificNodeKey: nodeKey,
);
}
}