title: How to make marker in flutter google map move with camera and not with map
body: <p>i watched a <a href="https://youtu.be/kb3ae14vw6k" rel="nofollow noreferrer">video</a> in which the location marker moved with the camera and was not stuck to the map. I am not sure if this is the official google map for flutter, but if it is how was this achieved.</p>
  
  <p>i tried passing the controllers camera position to the marker, but it didnt work, as i am not sure the markers position got updated with the camera movement.</p>
  
  <pre><code> mapController.addMarker(MarkerOptions(
        icon: BitmapDescriptor.fromAsset("assets/images/marker.png"),
        position: LatLng(mapController.cameraPosition.target.latitude,mapController.cameraPosition.target.longitude),
        infoWindowText: InfoWindowText("Pick up location", "Pick up location")
      ));
  </code></pre>