I created a legend for features on the map in arcgis javascript 4.10. The issue I have is that I can only disable a sublayer's visibility by disabling all the layers within the parent layer on the layerlist.
I was wondering is there a way to just disable the visibility of a sublayer without disabling all the sublayers when displaying the legend on a layerlist.