parseArgHbox method

GreenNode parseArgHbox({
  1. required bool optional,
})

Implementation

GreenNode parseArgHbox({required bool optional}) {
  final res = parseArgNode(mode: Mode.text, optional: optional);
  if (res is EquationRowNode) {
    return EquationRowNode(children: [
      StyleNode(
        optionsDiff: OptionsDiff(style: MathStyle.text),
        children: res.children,
      )
    ]);
  } else {
    return StyleNode(
      optionsDiff: OptionsDiff(style: MathStyle.text),
      children: res?.children.whereNotNull().toList(growable: false) ?? [],
    );
  }
}