getChildren method

  1. @override
List<DiagnosticsNode> getChildren ()
override

Children of this DiagnosticsNode.

See also:

Implementation

@override
List<DiagnosticsNode> getChildren() {
  if (expandableValue) {
    final T object = value;
    if (object is DiagnosticsNode) {
      return object.getChildren();
    }
    if (object is Diagnosticable) {
      return object.toDiagnosticsNode(style: style).getChildren();
    }
  }
  return const <DiagnosticsNode>[];
}