errorTextConfiguration top-level property
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:
- DiagnosticsTreeStyle.error, uses this style for ASCII art display.
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,
);