whitespaceTextConfiguration top-level property Null safety

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 = 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,
);