DiagnosticsTreeStyle enum Null safety
Styles for displaying a node in a DiagnosticsNode tree.
In release mode, these styles may be ignored, as diagnostics are compacted or truncated to save on binary size.
See also:
- DiagnosticsNode.toStringDeep, which dumps text art trees for these styles.
Constructors
- DiagnosticsTreeStyle()
-
const
Values
- none → const DiagnosticsTreeStyle
-
A style that does not display the tree, for release mode.
DiagnosticsTreeStyle()
- sparse → const DiagnosticsTreeStyle
-
Sparse style for displaying trees.
See also:
- RenderObject, which uses this style.
DiagnosticsTreeStyle()
- offstage → const DiagnosticsTreeStyle
-
Connects a node to its parent with a dashed line.
See also:
- RenderSliverMultiBoxAdaptor, which uses this style to distinguish offstage children from onstage children.
DiagnosticsTreeStyle()
- dense → const DiagnosticsTreeStyle
-
Slightly more compact version of the sparse style.
See also:
- Element, which uses this style.
DiagnosticsTreeStyle()
- transition → const DiagnosticsTreeStyle
-
Style that enables transitioning from nodes of one style to children of another.
See also:
- RenderParagraph, which uses this style to display a TextSpan child in a way that is compatible with the DiagnosticsTreeStyle.sparse style of the RenderObject tree.
DiagnosticsTreeStyle()
- error → const DiagnosticsTreeStyle
-
Style for displaying content describing an error.
See also:
- FlutterError, which uses this style for the root node in a tree describing an error.
DiagnosticsTreeStyle()
- whitespace → const DiagnosticsTreeStyle
-
Render the tree just using whitespace without connecting parents to children using lines.
See also:
- SliverGeometry, which uses this style.
DiagnosticsTreeStyle()
- flat → const DiagnosticsTreeStyle
-
Render the tree without indenting children at all.
See also:
- DiagnosticsStackTrace, which uses this style.
DiagnosticsTreeStyle()
- singleLine → const DiagnosticsTreeStyle
-
Render the tree on a single line without showing children.
DiagnosticsTreeStyle()
- errorProperty → const DiagnosticsTreeStyle
-
Render the tree using a style appropriate for properties that are part of an error message.
The name is placed on one line with the value and properties placed on the following line.
See also:
- singleLine, which displays the same information but keeps the property and value on the same line.
DiagnosticsTreeStyle()
- shallow → const DiagnosticsTreeStyle
-
Render only the immediate properties of a node instead of the full tree.
See also:
- DebugOverflowIndicatorMixin, which uses this style to display just the immediate children of a node.
DiagnosticsTreeStyle()
- truncateChildren → const DiagnosticsTreeStyle
-
Render only the children of a node truncating before the tree becomes too large.
DiagnosticsTreeStyle()
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
DiagnosticsTreeStyle> -
A constant List of the values in this enum, in order of their declaration.
[none, sparse, offstage, dense, transition, error, whitespace, flat, singleLine, errorProperty, shallow, truncateChildren]