filterChildren method

  1. @override
List<DiagnosticsNode> filterChildren (
  1. List<DiagnosticsNode> children,
  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.


List<DiagnosticsNode> filterChildren(List<DiagnosticsNode> children, DiagnosticsNode owner) {
  return service._filterChildren(children, this);