String toStringDeep([String prefixLineOne = '', String prefixOtherLines = '' ])

Returns a description of the tree rooted at this node. If the prefix argument is provided, then every line in the output will be prefixed by that string.

Source

String toStringDeep([String prefixLineOne = '', String prefixOtherLines = '']) {
  RenderObject debugPreviousActiveLayout = _debugActiveLayout;
  _debugActiveLayout = null;
  String result = '$prefixLineOne$this\n';
  final String childrenDescription = debugDescribeChildren(prefixOtherLines);
  final String descriptionPrefix = childrenDescription != '' ? '$prefixOtherLines \u2502 ' : '$prefixOtherLines   ';
  List<String> description = <String>[];
  debugFillDescription(description);
  result += description
    .expand((String description) => debugWordWrap(description, 65, wrapIndent: '  '))
    .map/*<String>*/((String line) => "$descriptionPrefix$line\n")
    .join();
  if (childrenDescription == '')
    result += '$prefixOtherLines\n';
  result += childrenDescription;
  _debugActiveLayout = debugPreviousActiveLayout;
  return result;
}