If I see a specific layer (eg. "2 Foot Contour") on the Layer List widget, what's the easiest way to programmatically find the layer by name and turn its visibility on/off.
Here are two threads you can consult:
Webapp Builder Layer List Widget
Make layer visible after LayerList widget has opened
This widget may be helpful:
Layer Toggle Button Widget Version 22.214.171.124 - 01/2/2018
Retrieving data ...