filterChildren method Null safety

  1. @override
List<DiagnosticsNode> filterChildren(
  1. List<DiagnosticsNode> nodes,
  2. DiagnosticsNode owner
)
override

Filters the list of DiagnosticsNodes that will be included as children for the given owner node.

The callback may return a subset of the children in the provided list or replace the entire list with new child nodes.

See also:

  • subtreeDepth, which controls how many levels of children will be included in the serialization.

Implementation

@override
List<DiagnosticsNode> filterChildren(List<DiagnosticsNode> nodes, DiagnosticsNode owner) {
  return service._filterChildren(nodes, this);
}