toggleLayersVisibility method

Future<void> toggleLayersVisibility()

toggleLayersVisibility

this method hide/show all layer exist in the map

Implementation

Future<void> toggleLayersVisibility() async {
  _layerIsVisible = !_layerIsVisible;
  await osmBaseController.toggleLayer(toggle: _layerIsVisible);
}