whitespaceTextConfiguration top-level property

TextTreeConfiguration whitespaceTextConfiguration
final

Whitespace only configuration where children are consistently indented two spaces.

Use this style for displaying properties with structured values or for displaying children within a transitionTextConfiguration as using a style that draws line art would be visually distracting for those cases.

Example:

<parent_node>
  <name>: <description>:
    <properties>
    <children>
  <name>: <description>:
    <properties>
    <children>

See also:

Implementation

final TextTreeConfiguration whitespaceTextConfiguration = new TextTreeConfiguration(
  prefixLineOne: '',
  prefixLastChildLineOne: '',
  prefixOtherLines: ' ',
  prefixOtherLinesRootNode: '  ',
  bodyIndent: '',
  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,
)