mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Fix typo (#121291)
This commit is contained in:
parent
a50bdcfd18
commit
1737233567
@ -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
|
|||||||
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
|
|||||||
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
|
|||||||
|
|
||||||
@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
|
|||||||
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user