removeSatellite method

void removeSatellite(
  1. String id
)

Removes the satellite from the globe.

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

Example usage:

controller.removeSatellite('iss');

Implementation

void removeSatellite(String id) {
  satellites.removeWhere((element) => element.id == id);
  notifyListeners();
}