addPoi method

void addPoi(
  1. Poi poi
)

Adds a new POI (e.g., from a long press on the map)

Implementation

void addPoi(Poi poi) {
  pois.add(poi);
  Get.snackbar('Location Added', '${poi.name} has been added to the map.');
}