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

Returns a string representation of this layer and its descendants.

Source

String toStringDeep([String prefixLineOne = '', String prefixOtherLines = '']) {
  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.map((String description) => "$descriptionPrefix$description\n").join();
  if (childrenDescription == '')
    result += '$prefixOtherLines\n';
  result += childrenDescription;
  return result;
}