DiagnosticsSerializationDelegate class

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


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. [...]
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. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
Returns a string representation of this object.


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