InspectorSerializationDelegate class Null safety
A delegate that configures how a hierarchy of DiagnosticsNodes are serialized by the Flutter Inspector.
- Implemented types
- Annotations
Constructors
-
InspectorSerializationDelegate({String? groupName, bool summaryTree = false, int maxDescendentsTruncatableNode = -1, bool expandPropertyValues = true, int subtreeDepth = 1, bool includeProperties = false, required WidgetInspectorService service, Map<
String, Object> ? addAdditionalPropertiesCallback(DiagnosticsNode, InspectorSerializationDelegate)?}) - Creates an InspectorSerializationDelegate that serialize DiagnosticsNode for Flutter Inspector service.
Properties
-
addAdditionalPropertiesCallback
→ (Map<
String, Object> ? Function?(DiagnosticsNode, InspectorSerializationDelegate)?) -
Callback to add additional experimental serialization properties.
final
- expandPropertyValues → bool
-
Whether properties that have a Diagnosticable as value should be
expanded.
final
- groupName → String?
-
Optional
groupName
parameter which indicates that the json should contain live object ids.final - hashCode → int
-
The hash code for this object.
read-onlyinherited
- includeProperties → bool
-
Whether to include the properties of a DiagnosticsNode in the
serialization.
final
- maxDescendentsTruncatableNode → int
-
Maximum descendents of DiagnosticsNode before truncating.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- service → WidgetInspectorService
-
Service used by GUI tools to interact with the WidgetInspector.
final
- subtreeDepth → int
-
Controls how many levels of children will be included in the serialized
hierarchy of DiagnosticsNodes.
final
- summaryTree → bool
-
Whether the tree should only include nodes created by the local project.
final
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.
override
-
copyWith(
{int? subtreeDepth, bool? includeProperties}) → DiagnosticsSerializationDelegate -
Creates a copy of this DiagnosticsSerializationDelegate with the
provided values.
override
-
delegateForNode(
DiagnosticsNode node) → DiagnosticsSerializationDelegate -
Returns the DiagnosticsSerializationDelegate to be used
for adding the provided DiagnosticsNode to the serialization.
override
-
filterChildren(
List< DiagnosticsNode> nodes, DiagnosticsNode owner) → List<DiagnosticsNode> -
Filters the list of
DiagnosticsNode
s that will be included as children for the givenowner
node.override -
filterProperties(
List< DiagnosticsNode> nodes, DiagnosticsNode owner) → List<DiagnosticsNode> -
Filters the list of
DiagnosticsNode
s that will be included as properties for the givenowner
node.override -
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 theowner
node.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited