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.

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

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 non-existent 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