errorTextConfiguration top-level property

TextTreeConfiguration errorTextConfiguration
final

Configuration that draws a box around a node ignoring the connection to the parents.

If nested in a tree, this node is best displayed in the property box rather than as a traditional child.

Used to draw a decorative box around detailed descriptions of an exception.

Example:

โ•โ•โ•ก <name>: <description> โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
<body>
...
โ”œโ”€<normal_child_name>: <child_description>
โ•Ž โ”‚ <property1>
โ•Ž โ”‚ <property2>
โ•Ž โ”‚ ...
โ•Ž โ”‚ <propertyN>
โ•Ž โ”‚
โ•Ž โ””โ”€<child_name>: <child_description>
โ•Ž     <property1>
โ•Ž     <property2>
โ•Ž     ...
โ•Ž     <propertyN>
โ•Ž
โ•Žโ•Œ<dashed_child_name>: <child_description>
โ•Ž โ”‚ <property1>
โ•Ž โ”‚ <property2>
โ•Ž โ”‚ ...
โ•Ž โ”‚ <propertyN>
โ•Ž โ”‚
โ•Ž โ””โ”€<child_name>: <child_description>
โ•Ž     <property1>
โ•Ž     <property2>
โ•Ž     ...
โ•Ž     <propertyN>
โ•Ž
โ””โ•Œ<dashed_child_name>: <child_description>'
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

See also:

Implementation

final TextTreeConfiguration errorTextConfiguration = TextTreeConfiguration(
  prefixLineOne: 'โ•žโ•โ•ฆ',
  prefixLastChildLineOne: 'โ•˜โ•โ•ฆ',
  prefixOtherLines: ' โ•‘ ',
  footer: ' โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•',
  linkCharacter: 'โ”‚',
  // Subtree boundaries are clear due to the border around the node so omit the
  // property prefix.
  propertyPrefixIfChildren: '',
  propertyPrefixNoChildren: '',
  prefixOtherLinesRootNode: '',
  beforeName: 'โ•โ•โ•ก ',
  suffixLineOne: ' โ•žโ•โ•',
  mandatoryFooter: 'โ•โ•โ•โ•โ•',
  // No need to add a blank line as the footer makes the boundary of this
  // subtree unambiguous.
  addBlankLineIfNoChildren: false,
  isBlankLineBetweenPropertiesAndChildren: false,
);