unwrapEquationRow method
Return the only child of EquationRowNode
If the EquationRowNode has more than one child, an error will be thrown.
Implementation
GreenNode unwrapEquationRow() {
if (this is EquationRowNode) {
if (this.children.length == 1) {
return (this as EquationRowNode).children[0];
}
throw ArgumentError(
'Unwrap equation row failed due to multiple children inside');
}
return this;
}