I would like to create a widget to do this: once it is closed, it will uncheck all the current CHECKED layers in the Layer List Widget (ESRI’s Widget). I am working inside the onClose: function(). What I was thinking is forEach(myLayers in LayerInfos){ … }, but then have no clue where to start. Do I have to communicate with the Layer List Widget? Any hint will be greatly helpful. Thanks!
Here is the LayerInfo class help doc, maybe useful:
LayerInfos class—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers