visitLayout method

  1. @override
String visitLayout(
  1. LayoutNode node
)
override

Implementation

@override
String visitLayout(LayoutNode node) {
  _output.write("Layout(${node.layoutType.name}");
  if (node.width != null) _output.write(", width=${node.width}");
  if (node.height != null) _output.write(", height=${node.height}");
  if (node.shift != null) _output.write(", shift=${node.shift}");
  _output.write(")");
  if (node.content.isNotEmpty) {
    _output.write("\n");
    _indent++;
    for (final child in node.content) {
      _printIndent();
      visit(child);
    }
    _indent--;
  }
  return "";
}