receiveConstant method
Implementation
@override
DartBlockValueTreeBooleanNode receiveConstant(bool constant) {
if (parent != null) {
final newConstantNode = DartBlockValueTreeBooleanConstantNode.init(
constant,
parent,
specificNodeKey: nodeKey,
);
parent!.replaceChild(this, newConstantNode);
return newConstantNode;
} else {
return DartBlockValueTreeBooleanConstantNode.init(
constant,
null,
specificNodeKey: nodeKey,
);
}
}