title: How to check if an item is in multiple Lists Flutter
body: <p>I have a Flutter method that places <code>Map Markers</code></p>
  <p>When one is pressed it pops up with a metadata box</p>
  <p>Depending on which type of marker is pressed I will trigger a different <code>ShowDialog</code></p>
  <p>I have a Gesture Handler that listens for taps and then reacts.</p>
  <p>Currently, upon tap it then calls <code> _pickMapMarker(touchPoint);</code> which allows the metadata to show</p>
  <p>I need a <code>_pickMapMarker2</code> to be an option depending on the type of marker pressed</p>
  <p>All markers are added to a list, <code>List&lt;MapMarker&gt; _x</code> when placed, there is list <code>_mapMarkertype1</code>, <code>_mapMarkertype2</code></p>
  <p>I guess I will need an <code>if</code> or <code>for</code> statement but I cannot work it out dependant on the <code>List&lt;MapMarker&gt;</code> the marker belongs to</p>
  <p>Currently</p>
  <pre><code> void _setTapGestureHandler() {
      _hereMapController.gestures.tapListener = TapListener((Point2D touchPoint) {
       
        _pickMapMarker(touchPoint);
       });
    }
  </code></pre>
  <p>I need something like (It is of course not functional, just to explain what I need)</p>
  <pre><code>  void _setTapGestureHandler() {
      _hereMapController.gestures.tapListener = TapListener((Point2D touchPoint) {
       
        if (MapMarker == _mapMarkerList1) {
        _pickMapMarker(touchPoint);
        }
        if (MapMarker == _mapMarkerList2) {
        _pickMapMarker2(touchPoint);
        }
  
       });
    }
  </code></pre>