removePointConnection method

void removePointConnection(
  1. String id
)

Removes the connection between two points from the globe.

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

Example usage:

 controller.removePointConnection('id');

Implementation

void removePointConnection(String id) {
  connections.removeWhere((element) => element.id == id);
  notifyListeners();
}