flatTextConfiguration top-level property Null safety
final
Whitespace only configuration where children are not indented.
Use this style when indentation is not needed to disambiguate parents from children as in the case of a DiagnosticsStackTrace.
Example:
<parent_node>
<name>: <description>:
<properties>
<children>
<name>: <description>:
<properties>
<children>
See also:
- DiagnosticsTreeStyle.flat, uses this style for ASCII art display.
Implementation
final TextTreeConfiguration flatTextConfiguration = TextTreeConfiguration(
prefixLineOne: '',
prefixLastChildLineOne: '',
prefixOtherLines: '',
prefixOtherLinesRootNode: '',
propertyPrefixIfChildren: '',
propertyPrefixNoChildren: '',
linkCharacter: '',
addBlankLineIfNoChildren: false,
// Add a colon after the description and before the properties to link the
// properties to the description line.
afterDescriptionIfBody: ':',
isBlankLineBetweenPropertiesAndChildren: false,
);