getLayoutExplorerNode method

Future<Response> getLayoutExplorerNode(
  1. String isolateId,
  2. String objectGroup, {
  3. String? id,
  4. int? subtreeDepth,
})

Gets the layout explorer node.

Implementation

Future<Response> getLayoutExplorerNode(String isolateId, String objectGroup,
    {String? id, int? subtreeDepth}) async {
  return await vmService.callServiceExtension(
    'ext.flutter.inspector.getLayoutExplorerNode',
    isolateId: isolateId,
    args: {
      'id': id,
      'groupName':
          objectGroup, // Note: This uses 'groupName' instead of 'objectGroup'
      'subtreeDepth': subtreeDepth?.toString(),
    },
  );
}