DiagnosticsSerializationDelegate class Null safety

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.



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


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


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 non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]
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. [...]


operator ==(Object other) bool
The equality operator. [...]