removePoint method

void removePoint(
  1. String id
)

Removes the point from the globe.

The id parameter represents the id of the point to be removed.

Example usage:

controller.removePoint('id');

Implementation

void removePoint(String id) {
  points.removeWhere((element) => element.id == id);
  notifyListeners();
}