My custom widget allows the user to add WebTiledLayer(s) to the WAB (developer 2.19) built app map https://mylaptop:3346/webappbuilder/apps/5/. I found out by accident that the ootb LayerList widget recognized the id I assigned to the WebTiledLayer(s) and displays my added layer along with the other layers from the associated webmap. I believe this behavior is what I desire for a future step.
Before the future step, I have started the next step for my custom widget - adding a graphics layer by user choice. I would like the LayerList widget to display the added graphics layer in the same manner it displays the added WebTiledLayer, but it does not. I get the added graphics layer to display as expected on the app map, and to my eyes I assign the id to the graphics layer the same as I assign the id to the WebTiledLayer(s), but the LayerList widget is not picking up the added graphics layer the way it is picking