getDetailsSubtree method

Future<Map<String, Object?>> getDetailsSubtree({
  1. required String inspectorId,
  2. required String groupName,
  3. int subtreeDepth = 5,
})

Raw DiagnosticsNode subtree rooted at inspectorId, including each node's properties. Used for selective per-node detail reads (input controller.text, icon codepoint, …).

Implementation

Future<Map<String, Object?>> getDetailsSubtree({
  required String inspectorId,
  required String groupName,
  int subtreeDepth = 5,
}) async {
  try {
    return await _runtime.readDetailsSubtree(
      inspectorId: inspectorId,
      groupName: groupName,
      subtreeDepth: subtreeDepth,
    );
  } on Object catch (e) {
    throw InspectorReadError('getDetailsSubtree($inspectorId): $e', cause: e);
  }
}