placeMarker method

void placeMarker(
  1. BuildContext context,
  2. AutonomyModel model,
  3. GpsCoordinates coordinates
)

Places a marker at the given location and closes the dialog opened by promptForMarker.

Implementation

void placeMarker(BuildContext context, AutonomyModel model, GpsCoordinates coordinates) {
  model.placeMarker(model.markerBuilder.value);
  model.markerBuilder.clear();
  Navigator.of(context).pop();
}