toStringDeep method
- String prefixLineOne = '',
- String? prefixOtherLines,
- TextTreeConfiguration? parentConfiguration,
- DiagnosticLevel minLevel = DiagnosticLevel.debug,
- int wrapWidth = 65,
Returns a string representation of this node and its descendants.
prefixLineOne
will be added to the front of the first line of the
output. prefixOtherLines
will be added to the front of each other line.
If prefixOtherLines
is null, the prefixLineOne
is used for every line.
By default, there is no prefix.
minLevel
specifies the minimum DiagnosticLevel for properties included
in the output.
wrapWidth
specifies the column number where word wrapping will be
applied.
The toStringDeep method takes other arguments, but those are intended for internal use when recursing to the descendants, and so can be ignored.
In release mode, far less information is retained and some information may not print at all.
See also:
Implementation
String toStringDeep({
String prefixLineOne = '',
String? prefixOtherLines,
TextTreeConfiguration? parentConfiguration,
DiagnosticLevel minLevel = DiagnosticLevel.debug,
int wrapWidth = 65,
}) {
String result = '';
assert(() {
result = TextTreeRenderer(
minLevel: minLevel,
wrapWidth: wrapWidth,
).render(
this,
prefixLineOne: prefixLineOne,
prefixOtherLines: prefixOtherLines,
parentConfiguration: parentConfiguration,
);
return true;
}());
return result;
}