DiagnosticsSerializationDelegate class abstract

A delegate that configures how a hierarchy of DiagnosticsNodes should be serialized.

Implement this class in a subclass to fully configure how DiagnosticsNodes get serialized.

Implementers

Constructors

DiagnosticsSerializationDelegate({int subtreeDepth, bool includeProperties})
Creates a simple DiagnosticsSerializationDelegate that controls the subtreeDepth and whether to includeProperties.
const
factory

Properties

expandPropertyValues bool
Whether properties that have a Diagnosticable as value should be expanded.
no setter
hashCode int
The hash code for this object.
no setterinherited
includeProperties bool
Whether to include the properties of a DiagnosticsNode in the serialization.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtreeDepth int
Controls how many levels of children will be included in the serialized hierarchy of DiagnosticsNodes.
no setter

Methods

additionalNodeProperties(DiagnosticsNode node) Map<String, Object?>
Returns a serializable map of additional information that will be included in the serialization of the given DiagnosticsNode.
copyWith({int subtreeDepth, bool includeProperties}) DiagnosticsSerializationDelegate
Creates a copy of this DiagnosticsSerializationDelegate with the provided values.
delegateForNode(DiagnosticsNode node) DiagnosticsSerializationDelegate
Returns the DiagnosticsSerializationDelegate to be used for adding the provided DiagnosticsNode to the serialization.
filterChildren(List<DiagnosticsNode> nodes, DiagnosticsNode owner) List<DiagnosticsNode>
Filters the list of DiagnosticsNodes that will be included as children for the given owner node.
filterProperties(List<DiagnosticsNode> nodes, DiagnosticsNode owner) List<DiagnosticsNode>
Filters the list of DiagnosticsNodes that will be included as properties for the given owner node.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
truncateNodesList(List<DiagnosticsNode> nodes, DiagnosticsNode? owner) List<DiagnosticsNode>
Truncates the given list of DiagnosticsNode that will be added to the serialization as children or properties of the owner node.

Operators

operator ==(Object other) bool
The equality operator.
inherited