title: Flutter - Drag marker and get new position
body: <p>In Flutter I have a map that take the device position with help of  <a href="https://pub.dartlang.org/packages/location" rel="noreferrer">location</a>. Then i use this position to show marker in Google map with help of <a href="https://pub.dartlang.org/packages/google_maps_flutter" rel="noreferrer">Google Maps Flutter</a> plugin.</p>
  
  <p>The code is similar to</p>
  
  <pre><code> child: GoogleMap(
          mapType: MapType.hybrid,
          initialCameraPosition: CameraPosition(
            target: LatLng(lat, lng),
            zoom: 5,
          ),
          markers: Set&lt;Marker&gt;.of(
            &lt;Marker&gt;[
              Marker(
                draggable: true,
                markerId: MarkerId("1"),
                position: LatLng(lat, lng),
                icon: BitmapDescriptor.defaultMarker,
                infoWindow: const InfoWindow(
                  title: 'Usted está aquí',
                ),
              )
            ],
          ),
          onMapCreated: (GoogleMapController controller) {
            mapController = controller;
          },
        ))
  </code></pre>
  
  <p>If location plugin fails or take wrong data i need to have the option to reposition this marker. I use <em>draggable: true</em> to drag marker, but i need to take the new latitude and longitude for save it in database.</p>
  
  <p>So the question is: Using the draggable how can i get the new latitude and longitude?</p>