filterChildren method Null safety

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

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

List<DiagnosticsNode> filterChildren(List<DiagnosticsNode> nodes, DiagnosticsNode owner);