Unverified Commit 17372335 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Fix typo (#121291)

parent a50bdcfd
...@@ -932,7 +932,7 @@ mixin WidgetInspectorService { ...@@ -932,7 +932,7 @@ mixin WidgetInspectorService {
groupName: _consoleObjectGroup, groupName: _consoleObjectGroup,
subtreeDepth: 5, subtreeDepth: 5,
includeProperties: true, includeProperties: true,
maxDescendentsTruncatableNode: 5, maxDescendantsTruncatableNode: 5,
service: this, service: this,
), ),
)!; )!;
...@@ -3566,7 +3566,7 @@ class InspectorSerializationDelegate implements DiagnosticsSerializationDelegate ...@@ -3566,7 +3566,7 @@ class InspectorSerializationDelegate implements DiagnosticsSerializationDelegate
InspectorSerializationDelegate({ InspectorSerializationDelegate({
this.groupName, this.groupName,
this.summaryTree = false, this.summaryTree = false,
this.maxDescendentsTruncatableNode = -1, this.maxDescendantsTruncatableNode = -1,
this.expandPropertyValues = true, this.expandPropertyValues = true,
this.subtreeDepth = 1, this.subtreeDepth = 1,
this.includeProperties = false, this.includeProperties = false,
...@@ -3588,7 +3588,7 @@ class InspectorSerializationDelegate implements DiagnosticsSerializationDelegate ...@@ -3588,7 +3588,7 @@ class InspectorSerializationDelegate implements DiagnosticsSerializationDelegate
final bool summaryTree; final bool summaryTree;
/// Maximum descendents of [DiagnosticsNode] before truncating. /// Maximum descendents of [DiagnosticsNode] before truncating.
final int maxDescendentsTruncatableNode; final int maxDescendantsTruncatableNode;
@override @override
final bool includeProperties; final bool includeProperties;
...@@ -3663,10 +3663,10 @@ class InspectorSerializationDelegate implements DiagnosticsSerializationDelegate ...@@ -3663,10 +3663,10 @@ class InspectorSerializationDelegate implements DiagnosticsSerializationDelegate
@override @override
List<DiagnosticsNode> truncateNodesList(List<DiagnosticsNode> nodes, DiagnosticsNode? owner) { List<DiagnosticsNode> truncateNodesList(List<DiagnosticsNode> nodes, DiagnosticsNode? owner) {
if (maxDescendentsTruncatableNode >= 0 && if (maxDescendantsTruncatableNode >= 0 &&
owner!.allowTruncate == true && owner!.allowTruncate == true &&
nodes.length > maxDescendentsTruncatableNode) { nodes.length > maxDescendantsTruncatableNode) {
nodes = service._truncateNodes(nodes, maxDescendentsTruncatableNode); nodes = service._truncateNodes(nodes, maxDescendantsTruncatableNode);
} }
return nodes; return nodes;
} }
...@@ -3676,7 +3676,7 @@ class InspectorSerializationDelegate implements DiagnosticsSerializationDelegate ...@@ -3676,7 +3676,7 @@ class InspectorSerializationDelegate implements DiagnosticsSerializationDelegate
return InspectorSerializationDelegate( return InspectorSerializationDelegate(
groupName: groupName, groupName: groupName,
summaryTree: summaryTree, summaryTree: summaryTree,
maxDescendentsTruncatableNode: maxDescendentsTruncatableNode, maxDescendantsTruncatableNode: maxDescendantsTruncatableNode,
expandPropertyValues: expandPropertyValues ?? this.expandPropertyValues, expandPropertyValues: expandPropertyValues ?? this.expandPropertyValues,
subtreeDepth: subtreeDepth ?? this.subtreeDepth, subtreeDepth: subtreeDepth ?? this.subtreeDepth,
includeProperties: includeProperties ?? this.includeProperties, includeProperties: includeProperties ?? this.includeProperties,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment